Format, beautify and minify HTML, CSS, JS and JSON. Works with code formatter, json formatter, css beautifier. Free, private and runs in your browser — no sign-up.
Minified code is efficient for machines and unreadable for people. This formatter takes HTML, CSS, JavaScript or JSON and re-indents it into something you can actually read, or does the opposite and compresses it to the smallest possible size.
Minifying only removes whitespace and comments, which JavaScript and CSS ignore. Always test the minified output before deploying, since a rare edge case such as a missing semicolon can behave differently.
It reports where the error is rather than guessing a repair. Fix the reported position and format again.
No. All formatting runs in your browser, so proprietary or sensitive code stays on your device.
HTML, CSS, JavaScript and JSON, which cover the files most people need to tidy up or shrink.
Browse all free tools