Code Formatter
Format and beautify code with proper indentation. Support for JavaScript, Python, JSON, HTML. Improve code readability for review and documentation.
Formatting Rules
JavaScript/TS
Braces on same line
Consistent indentation
Statement spacing
Object literal style
Python
4-space indent (PEP8)
Block after colon
No semicolons
Space around operators
JSON
2 or 4 space indent
Key-value spacing
Array formatting
Strict syntax
HTML
Tag line breaks
Attribute alignment
Nested indentation
Close tag spacing
Professional Tools
Prettier: JS/TS/JSON formatter
Black: Python formatter
ESLint: JS linting + fix
autopep8: Python PEP8 fix
Use Cases
Review: Clean up messy code
Docs: Format examples
Learning: See proper style
Debug: Readable error code