Format and beautify code
Code Formatter reformats JSON, CSS, or HTML entirely in your browser. JSON is parsed and re-serialized with 2-space indentation (invalid JSON shows a clear error), while CSS and HTML use simple pattern-based rules to add line breaks and indentation rather than a full parser. Only these three languages are supported — JavaScript, Python, Java, and others aren't available.
What languages does Code Formatter support?
Only JSON, CSS, and HTML — there's no JavaScript, Python, Java, C++, PHP, or SQL formatting.
Is Code Formatter free to use?
Yes, it's completely free with no signup required.
Does it store my code?
No, formatting happens entirely in your browser; nothing is uploaded to a server.
Can I customize indentation, bracket style, or other formatting rules?
No — each language uses one fixed formatting style with no customization options.