.editorconfig Generator
Configure indentation style and size, end-of-line, charset, whitespace trimming, final newlines and an optional max line length — then copy a valid .editorconfig that editors and IDEs read automatically.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
What the generated file contains
The output starts with root = true, which tells editors to stop searching parent directories, then a [*] section that applies to every file: indent style, indent size, end of line, charset, trailing-whitespace trimming and final-newline insertion. Setting a maximum line length above zero adds a max_line_length line, and a final [*.md] section is appended.
Indentation: spaces versus tabs
With spaces selected the file sets indent_style = space and indent_size = your chosen number (1 to 8). With tabs selected only indent_style = tab is written, because indent_size has no agreed meaning for tabs and editors interpret it differently — which is why the generator does not simply always emit both keys.
Line endings, charset and whitespace
End of line is lf, the Unix and modern default, or crlf for Windows, and charset is utf-8 or latin1. Trailing-whitespace trimming and final-newline insertion are each a plain true or false, and those two settings together are the most common source of noisy diffs when a team disagrees about them.
The Markdown override, and what to watch for
Markdown treats two trailing spaces as a hard line break, so a global trim rule would silently change rendering, which is why a [*.md] section always sets trim_trailing_whitespace = false. The file is assembled from your choices in this tab with nothing uploaded; note that .editorconfig needs editor or plugin support before the rules take effect.
Questions
Why the [*.md] override?
Markdown uses two trailing spaces as a hard line break, so trimming trailing whitespace in .md files would silently change rendering. The generator therefore always sets trim_trailing_whitespace = false for Markdown.
What does root = true mean?
It marks this file as the top of the configuration chain, so editors stop looking for another .editorconfig in parent directories. It is what you want in a repository root.
Why is indent_size missing when I pick tabs?
Editors disagree about what an indent_size means for tab characters, so the generator writes only indent_style = tab. If you need a tab width, set it in the editor or in a language-specific section instead.
Related tools
See category.gitignore Generator
Generate a .gitignore for Node, Python, Rust, Go, Java, macOS, Windows and more.
robots.txt Generator
Generate a robots.txt: allow all, block all, block AI crawlers, or custom rules.
:nth-child An+B Evaluator
Parse CSS An+B (:nth-child, :nth-of-type) microsyntax, validate it, and list which child indices it matches.
Accept-Language Header Analyzer
Analyze and build Accept-Language values