Omnikit
DevFilesMoneyAll tools
Ctrl K
Dev toolsFile toolsMoney calculatorsAll tools
HomeDeveloper toolsHTML Formatter & MinifierUnminify HTML

Unminify HTML

dev

Expand minified HTML back into markup you can read and edit

Runs in your browser. Nothing you type is sent anywhere. Updated on 24 Oct 2026.

You have the production markup of a page and need to work out how a section is built, but it arrived as a single unbroken line. Paste it and it comes back indented, one element per line, with attributes lined up. Nothing is added or removed, so what you read is exactly what the browser received. Copy the result into your editor and start from there.

Next:
  • CSS Beautifier & Minifier Tidy a stylesheet or minify it, with the size saved shown
  • JavaScript Beautifier & Minifier Beautify JavaScript, or minify it and see how many bytes went

How to unminify HTML code

1

Paste the minified production markup into the HTML box; the page opens in Format mode.

2

Read the Formatted pane, one element per line with children indented; nothing is added or removed.

3

If it reports a problem near a line, fix that spot in the input and the result appears.

4

Pick the Indent your editor uses, then press Copy and paste the markup into your editor.

How Unminify HTML works

This HTML formatter does the two jobs people need from markup: make it readable, or make it small. Paste on the left and the result appears on the right. Format indents every element on its own line at two spaces, four spaces or a tab, and wraps long attribute lists at the width you choose. Minify strips comments and spare whitespace and shows the size before, the size after and the percentage saved.

Most visits start with markup nobody wrote by hand. A page saved from a browser arrives as one line. A template engine produces a block with tabs and spaces mixed. A build step hands you production HTML and you need to find how a section is put together. Formatting first turns any of those into something you can read and search.

The minifier is deliberately careful. A space between two inline elements is visible on screen, so it stays; only whitespace between block-level tags, which the browser throws away anyway, is removed. Comments go except conditional comments for old Internet Explorer. The contents of pre, textarea, script and style are copied character for character, so indentation your users can see is never touched. Removing attribute quotes leaves any value containing a slash quoted, because browsers accept href=/a/b but several build tools will not read it. Scripts and stylesheets are not minified here; use the JavaScript Minifier and the CSS Minifier for those.

The rest of the article, and all 6 questions about HTML Formatter & Minifier, are on the HTML Formatter & Minifier page.

Frequently asked questions

Is this HTML formatter free?

Yes. There is no signup, no watermark and no limit on how much markup you paste or how often you use it. The page is paid for by a few ads shown outside the tool, never inside your result.

Is my HTML uploaded to a server?

No. Formatting and minifying run in your browser with JavaScript. Markup containing customer names, internal URLs or API keys in a script tag never leaves your device, and nothing is stored after you close the tab.

How much smaller does minifying HTML make a page?

Usually 3 to 10 percent of the raw bytes, and a little more with attribute quotes removed. Deeply indented markup saves most; a page that is already minified saves nothing. The tool shows the exact size before, the size after and the percentage, so you never have to guess.

Can I unminify HTML that came out of a build?

Yes. Choose Format and the single line is expanded into indented markup, one element per line. Nothing is added or removed, so you are reading exactly what the browser received. Pick the indent width and the wrap width that match your editor.

Still stuck? Ask about HTML Formatter & Minifier and anybody who knows can answer. No account needed.

More ways to use HTML Formatter & Minifier

  • HTML Formatter & MinifierIndent messy HTML, or minify it and see the bytes you saved
  • HTML MinifierStrip comments and spare whitespace from HTML and see the saving

Same job, other tools: Unminify CSS – Expand a minified stylesheet so you can read and edit the rules · Unminify JavaScript – Expand minified JavaScript into something you can read · Markdown to HTML – Convert Markdown into clean, safe HTML you can paste anywhere.

On the related tools: GraphQL Validator – Check a GraphQL query or schema for errors, optionally against your own SDL.

Related tools

All developer tools
Hex Viewer (xxd online)See any file as an xxd hex dump with offsets and text, or turn a hex dump back into a fileGraphQL FormatterFormat, minify and validate GraphQL queries and schemas, with errors by line and columnJSONL Viewer and ValidatorCheck JSON Lines and NDJSON line by line, view records as a table, convert to a JSON arrayJSON Formatter & ValidatorFormat, validate, minify and sort JSON with exact error positionsSQL FormatterFormat and beautify SQL for PostgreSQL, MySQL, SQL Server and moreMarkdown PreviewWrite Markdown and see it rendered live, with tables, task lists and codeCSS Beautifier & MinifierTidy a stylesheet or minify it, with the size saved shownJavaScript Beautifier & MinifierBeautify JavaScript, or minify it and see how many bytes went

In the collection Code Formatters and Minifiers.

Was this tool helpful?
Omnikit

Small jobs, done in your browser. Free, fast and private. Files are never uploaded.

Files

  • Compress Image
  • Image to PDF
  • Merge PDF
  • Compress PDF
  • PDF to Word
  • Word to PDF

Dev

  • JSON Formatter & Validator
  • Base64 Encode & Decode
  • JWT Decoder, Verifier & Encoder
  • Password Generator
  • UUID Generator
  • Unix Timestamp Converter

Money

  • SIP Calculator
  • EMI Calculator
  • GST Calculator
  • FD Calculator
  • PPF Calculator
  • Lumpsum Calculator
GuidesQuestionsAboutHow we checkLaw library (beta)PrivacyTermsDisclosureContactMore: Exam practice (UGC NET Paper 1)Runs in your browser. Nothing is uploaded. © 2026 Omnikit (theomnikit.com)