Code Formatter

Beautify and minify HTML, CSS, JavaScript code.

Drop file here or click to select
HTML/CSS/JS
Beautify
Minify

How Code Formatter works

Code Formatter runs entirely as JavaScript on this page. What you type stays in the page and is not sent anywhere; reloading clears it.

Limits

Check it yourself

Open the Network tab of your browser's developer tools (F12) while you use the tool: no request carries your input. The page's Content-Security-Policy only allows our anonymous error counter (what it receives). Step-by-step: how to check that a tool doesn't upload your file.

Related tools

Cron Expression Parser · CSS Minifier · CSV Viewer · Text Diff · Hash Generator · All tools