EditorConfig Generator
Write a consistent .editorconfig with global defaults and per-file-type sections.
Global defaults & sections
4 file sections.editorconfig
31 lines · 519 chars# EditorConfig helps maintain consistent coding styles
# https://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true
max_line_length = 100
[*.{js,jsx,ts,tsx}]
indent_style = space
indent_size = 2
max_line_length = 100
[*.py]
indent_style = space
indent_size = 4
max_line_length = 100
[*.{yml,yaml}]
indent_style = space
indent_size = 2
max_line_length = 100
[Makefile]
indent_style = tab
indent_size = 4
Details
EditorConfig is the small file that stops editors from rewriting indentation and line endings on save. This generator writes root = true, a global [*] block with charset, end_of_line, indent style/size and whitespace rules, then adds bracketed sections for JavaScript, Python, YAML, Markdown, Go, Rust, Makefile and JSON. The Makefile section always uses tab indentation — a space-indented recipe silently breaks make — and the validator checks that rule along with section syntax and duplicate globs. Everything is assembled in the browser.
Polyglot repo
[*] indent_style = space; [*.py] indent_size = 4; [Makefile] indent_style = tabOne global default plus per-language overrides keeps editors consistent.
Go and Rust
[*.go] indent_style = tab; [*.rs] indent_size = 4Language conventions differ; sections let both coexist in one repository.
Makefile guard
[Makefile]
indent_style = tabRecipes must use real tabs; the generator rejects space indentation for this section.
About this tool
EditorConfig Generator runs entirely in your browser on DevTools — no signup, no upload.
What this tool does not do
- EditorConfig Generator is a free in-browser utility, not a hosted API, and keeps no server-side history.
How to use this tool
Set your options
Choose the options EditorConfig Generator should use.
Generate
Press the generate action; each run produces fresh output.
Copy or export the result
Copy or download the generated result. EditorConfig Generator keeps no server-side history, so save what you need before leaving the page.
Frequently asked questions
What is EditorConfig and why do I need it?
EditorConfig is a plain-text file that tells compatible editors which indentation, charset, line endings and whitespace rules to use for each file type. It prevents the classic problem of a formatter or editor silently converting tabs to spaces, which is especially destructive in Makefiles.
What does root = true do?
Editors look for .editorconfig files from the edited file upward toward the filesystem root and merge what they find. root = true stops that search at your project, so settings from a parent directory cannot override the repository's conventions.
Why must Makefile recipes use tabs?
GNU make distinguishes recipe lines by a leading tab character; leading spaces produce the notorious *** missing separator error. The generator's Makefile section always sets indent_style = tab and flags an attempt to use spaces.
Does indent_size matter with indent_style = tab?
With tabs, indent_size is only a display-width hint for editors; the file still stores a tab character. Some editors use tab_width instead. The tool warns when a tab section also declares a size so you can decide whether to keep the visual hint.
Does EditorConfig replace Prettier or ESLint?
No. EditorConfig controls basic editor behaviour before you save, such as indentation and trailing whitespace. Formatters and linters enforce broader style and syntax rules. They work together, and many formatters read .editorconfig for their defaults.
Is the generated file uploaded?
No. The sections and validation are computed in your browser tab, and the download uses a local object URL.
Related tools
ABA Routing Number Generator
Generate 9-digit US ABA routing numbers with weighted Mod-10 checks.
Address Generator
Generate realistic addresses in the correct format for 21 countries — single-line, multi-line, JSON or HTML — plus a postcode validator. Test data only, runs in your browser.
API Key Generator
Generate realistic test API keys — custom prefixes, lengths, alphabets, optional checksum, bulk .env/CSV export. Locally in your browser.
Argentina CUIT / CUIL Generator
Generate and validate 11-digit Argentine CUIT and CUIL numbers with AFIP Mod-11 check digits.
ASCII Text Art Generator
Turn text into large ASCII art banners with multiple figlet fonts
Australia ABN Generator
Generate and validate 11-digit Australian Business Numbers (ABN) using weighted Mod-89.