Beautify and format minified HTML, CSS, and JavaScript online for free. Configurable indentation and line wrapping, with automatic language detection. No uploads.
First time here? Paste your minified or badly formatted code Your input is processed locally and disappears when you close the tab.
Minified code is built for machines. The moment you need to debug a production bundle, read a vendor stylesheet, or understand markup that arrived as one enormous line, you need it back in a shape a person can follow. Our free code beautifier online reformats HTML, CSS, and JavaScript with proper indentation and line breaks in a single tool.
Paste a snippet and the right language tab is selected for you — markup, stylesheet, and script are easy to tell apart — though you can always override it. Indentation can be two spaces, four, or tabs, and optional line wrapping at 80, 100, or 120 characters keeps long lines readable in narrow editor panes and side-by-side diffs. As an html formatter online it re-indents nested elements, as a css beautifier free it puts each declaration on its own line, and as a javascript formatter online it restores block structure and spacing.
One honest limitation worth knowing: beautifying restores formatting, not names. A minifier renames variables to single letters and that information is deleted from the file, so unminify javascript gives you readable, working code — not the original source. Everything runs in your browser, so proprietary code and client work never leave your device.
This is the direct counterpart to our minifiers: use the HTML Minifier, CSS Minifier, and JavaScript Minifier to shrink assets for production, and this tool to read them again afterwards. For queries rather than code, the SQL Formatter does the same job across nineteen database dialects.
Paste your minified or badly formatted code
Confirm the detected language tab, or pick one
Set indentation and line wrapping
Read the beautified output
Copy it or download it as a file