Loading…
Loading…
Format, validate, and minify XML (config files, .csproj, SOAP, RSS) in your browser. Entities, CDATA, and mixed content are kept exactly as written, and errors show the line and column.
Output appears here.
Paste it, drop a file (.xml, .config, .csproj, .xsd, .resx, RSS, and more), upload one, or load it from a URL. Click Sample to try a minified app.config.
Format indents nested elements with 2 spaces, 4 spaces, or tabs. Minify removes the whitespace between elements for the smallest file. Remove comments strips <!-- … --> from either. With Auto update on, the output follows your typing.
The browser's own XML parser checks that the document is well-formed. If it isn't, you get the line and column and a plain-English explanation for common mistakes like unclosed tags or HTML entities such as . Click to jump there.
Copy it, download it as a .xml file, or open it full-screen with Expand.
No. Only whitespace between elements is changed. Entities (&, ©), CDATA sections, comments, processing instructions, the <?xml ?> declaration, and DOCTYPEs are output exactly as you wrote them. Elements whose whitespace is part of their value are left untouched: mixed content like <p>Hello <b>world</b></p>, text-only elements, and anything marked xml:space="preserve".
No. Validation and formatting run in your browser, so config files with connection strings, API keys, or internal hostnames never leave your machine.
XML only predefines five entities: &, <, >, ", and '. Names like and © come from HTML and aren't defined unless the document's DTD declares them. Use the numeric form (  for a non-breaking space, © for ©) or type the character directly.
No. It checks that the XML is well-formed: every tag closed, properly nested, attributes quoted, one root element. It doesn't check that the elements and values match an XSD or DTD. Well-formed XML can still be rejected by a schema-aware consumer.
Yes. They're all XML. Namespaced elements (s:Envelope, xmlns:…) and MSBuild or .NET config files format like any other document. SVG is XML too, but for previewing it, the SVG Viewer tool is a better fit.
Data
Format, validate, and minify JSON in your browser. Paste it, upload a file, or load it from a URL. Errors show the exact line and column.
C# / .NET
Paste JSON and get C# model classes or records, ready for System.Text.Json or Newtonsoft.Json. Nested objects, arrays, nullable types, dates, and GUIDs are inferred for you.
SQL
Format and beautify SQL queries for SQL Server (T-SQL), PostgreSQL, MySQL, Oracle, and more. Set the indentation, keyword case, and layout, and get the exact line of any syntax error.
Data
Format and validate YAML (docker-compose, Kubernetes, GitHub Actions) without losing comments, or convert YAML to JSON. Errors show the exact line and column.
Web
Beautify HTML pages and fragments without changing how they render. Inline spacing, <pre>, and scripts stay intact, and embedded CSS and JavaScript can be formatted too.
Images · SVG
Preview SVG code live and safely, check its size and viewBox, fix common errors, and export it as PNG, a data URI, a CSS background, or an <img> tag.