Zero Signup ToolsFree browser tools

Developer Tools

EditorConfig Generator

Create a .editorconfig from presets for Web, Node, Python, Go, Rust, Java, .NET, Ruby, and PHP. Edit indent, line endings, charset, and per-glob overrides.

EditorConfig generator

Presets

Start from a stack

Each preset seeds the universal section and adds the right overrides for that ecosystem.

File options

Universal section

[*] applies to every file

These properties apply to every file by default. Override-only sections below can change them for specific globs.

Override sections

Per-glob overrides

Add a section for any file pattern that needs different rules. Leave a field on (inherit) to keep the universal value.

Output

Your .editorconfig

23 lines, 4 sections

# EditorConfig is awesome: https://editorconfig.org
# Generated with Zero Signup Tools.

root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

# Markdown lets trailing spaces force line breaks.
[*.md]
trim_trailing_whitespace = false

# Tabs are required for Makefile recipes.
[Makefile]
indent_style = tab

[*.{yml,yaml}]
indent_size = 2

Property quick reference

  • indent_style is space or tab.
  • indent_size is a number, or tab to match tab_width.
  • end_of_line is lf, crlf, or cr.
  • charset covers utf-8, utf-8-bom, utf-16be, utf-16le, latin1.
  • trim_trailing_whitespace and insert_final_newline accept true or false.
  • max_line_length is a number, or off for no limit.
  • unset on any property explicitly clears a value inherited from a parent section.

Glob syntax cheat sheet

  • * matches any characters except /.
  • ** matches any path, including subfolders.
  • ? matches a single character.
  • [abc] matches any character in the set. [!abc] matches anything not in the set.
  • {a,b} matches a or b. Combine like *.{ts,tsx,js,jsx}.
  • {num1..num2} matches any whole number in that range.
  • A leading / anchors the glob to the directory holding the .editorconfig file.

How to use

  1. Pick a stack preset that matches your project, or start from Generic minimal.
  2. Tweak the universal [*] section: indent style and size, line endings, charset, final newline, and max line length.
  3. Add override sections for any file pattern that needs different rules (for example *.md keeps trailing whitespace, Makefile uses tabs).
  4. Use (inherit) on any per-glob field to keep the universal value. Use unset to explicitly clear an inherited value.
  5. Toggle root = true and the comment banner to match your team's convention, then copy the result or download the .editorconfig file.

About this tool

EditorConfig Generator builds a valid .editorconfig file in your browser using the standard properties read by every modern editor and IDE: indent_style, indent_size, tab_width, end_of_line, charset, trim_trailing_whitespace, insert_final_newline, and max_line_length. Pick a preset (Web, Node, Python, Go, Rust, Java and Kotlin, .NET, Ruby, PHP, or Generic minimal) to seed the universal [*] section with values that match each ecosystem's conventions (4-space indent and PEP 8 for Python, tabs for Go, 100-character target for Rust, CRLF and utf-8-bom for .NET, 120-character target for PSR-12 PHP). Add per-glob override sections for files that need different rules: Markdown that should keep trailing whitespace, Makefiles that must use tabs, YAML or JSON kept at 2 spaces inside a 4-space project. Each property dropdown supports the unset sentinel so a section can explicitly clear a value inherited from a parent. The tool warns about common pitfalls (an empty universal section, an override that also uses [*], a glob with double slashes, an anchored leading slash) and emits a clean INI-style file with optional comment banner and root = true at the top. Copy the result or download the ready-to-commit .editorconfig. Everything runs in your browser. No files are uploaded, and your project paths and style choices stay on your device.

Free to use. Works in your browser. No signup, no login.

Related tools

You may also like

All tools
All toolsDeveloper Tools