Source

Original Input

0 characters Maximum recommended size: 1 MB

Result

Formatted Output

Ready

Enter or open JSON/XML content to begin.

0 characters No result yet

About PrettyFormatter

Online JSON & XML Formatter

PrettyFormatter is a free online JSON and XML formatter for formatting, validating, beautifying, and minifying structured data. Paste JSON or XML and PrettyFormatter automatically detects the format and produces clean, readable output.

JSON Formatter & Validator

Format and validate JSON, pretty-print minified JSON, identify syntax problems, and create readable JSON output. When a safe repair is possible, PrettyFormatter explains exactly what changed.

XML Formatter & Beautifier

Beautify and format XML with readable indentation while checking the document for XML syntax problems. Valid XML can also be minified for application use.

Private, Browser-Based Formatting

JSON and XML processing happens locally in your browser. Your document content is not uploaded to a formatting server.

Product highlights

How This Formatter Works

Private by design

JSON and XML are processed in your browser. Document content is not uploaded to a server.

Transparent auto-repair

Safe syntax repairs are validated and every change or generated placeholder is shown before use.

Three document tabs

Each browser page supports up to three independent formatter tabs for comparing or working with multiple documents.

Local recovery

The current browser tab is saved locally so reloads and normal browser session restoration can recover its document tabs.

Local folder

Select a file

Only supported text files from the folder you selected are listed.