Unformat.online
More tools
Clean Text
Strip smart quotes, zero-width characters, non-breaking spaces, and invisible Unicode from any pasted text.
Format JSON
Prettify or minify JSON. Auto-fixes single quotes, trailing commas, and unquoted keys.
Format SQL
Format SQL for MySQL, PostgreSQL, BigQuery, T-SQL, and more β€” uppercase keywords, proper indentation.
Format YAML
Format and validate YAML. Catches indentation errors in Kubernetes, Docker Compose, and GitHub Actions files.
Format XML
Indent and pretty-print XML. Works with SOAP, RSS, Maven POM, Android manifests, and SVG.
Markdown Viewer
Live split-view editor and renderer β€” edit on the left, preview on the right.
FileSQL
Drop a CSV or JSON file and query it with SQL instantly β€” no upload, no server.
Shredder
Remove EXIF, GPS, and author metadata from images and PDFs. Redact secrets from text and log files.
CronScope
Paste a cron schedule and see every run on a 12-month calendar. Never misread a cron expression again.
JWT Debugger
Decode JWTs instantly β€” view all claims, check expiry, and see the algorithm. Token never leaves your browser.
Base64
Encode text or files to Base64, or decode Base64 strings and preview images inline.
URL Encode / Decode
Encode URLs or decode percent-encoded strings like %20, %3D, %26 β€” instantly.
UUID Generator
Bulk-generate cryptographically random v4 UUIDs using crypto.randomUUID(). Copy one or all at once.

Minify XML Online

Compress XML by stripping all whitespace between tags. Paste prettified XML and get the most compact valid output β€” 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 is XML minification?

XML minification removes all non-significant whitespace β€” spaces, tabs, and line breaks between tags β€” to produce the smallest valid XML document. The content of text nodes is preserved; only inter-element whitespace is stripped.

Use minified XML for production SOAP requests, API payloads, configuration values stored in databases, and embedded XML strings. Minified XML can be 30–60% smaller than its prettified equivalent, reducing transfer time and storage cost.

How to minify XML

  1. Paste your prettified XML into the text area above.
  2. The formatter is pre-set to minify (0 indentation). Click Format to compress.
  3. Copy the compact output with the Copy button or Ctrl+K.