Text tools

XML formatter & viewer — pretty print, minify, XML to JSON

Pretty-print one-line XML with your choice of indent, see exactly where invalid XML breaks, minify it, or convert XML to JSON. Drop SVG, RSS, GPX and other XML files to view them.

🔒 Files are processed in this browser and never sent to a server.

한국어

Loading tool…

How to use

  1. 1

    Paste XML or drop a file.

  2. 2

    Choose format, minify or XML → JSON.

  3. 3

    Copy or download.

When to use it

API responses

Readable XML.

Configs

Format one-line XML.

Migration

XML to JSON.

Good to know

  • Great for reading API responses.
  • Text-only tags stay on one line.
  • Attributes become "@name" in JSON.

FAQ

Uploaded?

No.

Large files?

A few MB is fine.

Comments & CDATA?

Kept.

Related searches

  • #xmlformatter
  • #xmlformatteronline
  • #xmlviewer
  • #xmlvalidator
  • #xmltojson
  • #xmltojsonconverter