Unminify HTML, CSS, JavaScript, JSON, and XML in one place

GUIDE

Unminify JS, CSS, HTML, XML and JSON code in one browser workspace

Production builds ship minified by design: HTML templates collapsed to a single line, stylesheets stripped of whitespace, JavaScript bundles flattened, JSON logs compressed, XML exports with no indentation. That saves bytes but makes debugging miserable. This page is built for the moment you paste a snippet and need readable structure again—not a full IDE, not a build pipeline, just a fast unminify pass that runs locally after you paste or import a file.

Unminifier workspace with minified input and expanded output side by side

What “unminify” means here (and what it does not)

Unminify, in this tool, means restoring line breaks and indentation so you can scan nesting, spot a missing brace, or copy a section into a ticket. It is the same practical goal people search for with html unminify, css unminify, js unminify, json unminify, or xml unminify—one format, one job, readable text. We are not deobfuscating JavaScript: renamed variables, stripped comments, and deliberate encoding stay as they are. If the input is valid but crushed, expansion helps; if someone obfuscated on purpose, you still get structure, not secrets.

Most standalone formatters assume you already know the file type. Here, auto-detect routes paste to the right engine, and you can override the format when detection is wrong. For HTML that embeds scripts or styles, optional inline expansion formats code inside <script> and <style> tags too—handy when the page is one line but the bug lives in a callback. When JSON, XML, or HTML is slightly broken, repair may run before expansion, similar to our dedicated viewer tools, so a trailing comma or a mismatched tag does not block the whole job.

Paste and unminify
🌱

Five formats, one toolbar

Stop guessing which formatter tab to open. Paste once; the workspace handles HTML, CSS, JavaScript, JSON, and XML, or pick the format manually when you already know it.

🔬

Preview in a real viewer after you expand

Expanded HTML opens in the homepage Playground with live preview. JSON and XML jump into our JSON Viewer and XML Viewer with the output already loaded—structure you can click through, not a flat textarea.

💫

Your paste stays on your machine

Expansion runs in the browser tab. Nothing is uploaded for processing, which matters when the snippet came from a staging API, a client repo, or an incident log.

FEATURES

Why this unminify page is different from a generic formatter

Multi-format expansion plus viewer preview—two things most single-purpose tools do not combine.

Auto-detect picking the right format for a minified paste

One unminify entry for the formats you actually paste

Teams rarely minify only one language. A landing page might arrive as html unminify fodder from a CMS export; the stylesheet as a css unminify job from a CDN; config as json unminify from a log line; legacy data as xml unminify from an old integration. Switching between five bookmarked formatters wastes time and breaks flow. This workspace keeps indent controls, repair, and output in one place so you finish the task before context-switching.

How to unminify code on this page

1) Paste, import, or type minified code

1) Paste, import, or type minified code

Drop production output into the input panel or import a file. Leave Format on Auto detect unless you know the type—for example, force JSON when a log fragment keeps getting misread. Indent settings apply before expansion.

2) Let the workspace expand it

2) Let the workspace expand it

Click Unminify if you turned off auto-run, or paste to trigger expansion. For HTML with embedded scripts, enable Expand inline JS & CSS when the bug is inside a tag, not the markup skeleton. If expansion fails, try repair for HTML, JSON, or XML, or switch format manually.

3) Open a viewer when the format supports it

3) Open a viewer when the format supports it

Use the eye Preview button in the toolbar. HTML loads into the Playground; JSON into JSON Viewer; XML into XML Viewer. The button stays grey for CSS and JavaScript—expand those for editing, not visual inspection.

4) Copy, download, or keep exploring

4) Copy, download, or keep exploring

Copy expanded text into your editor, download with the right extension, or stay in the viewer to drill into nodes and preview. Re-run after you tweak indent or repair; output updates in place.

Unminify FAQ

GET STARTED

Unminify the snippet on your clipboard

Expand HTML, CSS, JavaScript, JSON, or XML locally—then preview HTML, JSON, or XML in a proper viewer.

Code Unminifier

Free
  • Auto-detect or pick HTML, CSS, JS, JSON, XML
  • Preview expanded HTML, JSON, and XML in site viewers
  • Optional inline script and style expansion for HTML
  • Repair paths for broken JSON, XML, and HTML
Use now

Runs in your browser. No account required.

Try the multi-format unminifier
Updated for 2026

Stop scrolling sideways through one-line production code

Paste, unminify, preview when the format supports it, and copy when the structure finally reads like a human wrote it.