Unformat.online

Prettify XML Online

Beautify compact or minified XML with proper indentation. Paste your XML and get a human-readable, structured result instantly — 100% client-side.

Rules:Smart QuotesConverts curly quotes (“” ‘’) to straight quotes. Always active.Non-Breaking SpacesReplaces non-breaking spaces (U+00A0) with regular spaces. Always active.Line EndingsNormalizes CRLF → LF and trims trailing whitespace per line. Always active.Removes invisible zero-width characters (U+200B, U+200C, U+200D) that silently break string comparisons.Strips the Byte Order Mark (U+FEFF) that causes “invalid character” errors in parsers and editors.Removes soft hyphens (U+00AD) from PDFs that show as garbled characters in code editors.Converts mixed tabs/spaces to a consistent indent width. Click to pick a size.Collapses all line breaks into one continuous paragraph. Great for reflowing PDF or email text.Control blank line density. Click to pick Keep 1 or Remove all.Text never leaves your browser
0 characters

What does prettifying XML mean?

Prettifying XML adds indentation and line breaks to make the hierarchical structure of a document readable. XML parsers treat all whitespace between tags as insignificant (unless specified otherwise), so prettified and compact XML are semantically equivalent.

Use prettified XML when reviewing API responses, debugging SOAP messages, reading configuration files, or inspecting RSS/Atom feeds. Use the indent selector to match your project's style — 2 spaces is compact, 4 spaces is more spacious for deeply nested documents.

How to prettify XML

  1. Paste your XML into the text area above.
  2. Choose 2-space or 4-space indentation from the indent selector.
  3. Copy the formatted result with the Copy button or Ctrl+K.