Desenvolvimento
Programming
JSON / XML
pretty print and minify
Format and minify JSON or XML directly in the browser — no extensions needed. Paste the data, apply pretty print for easy reading, or minify for production. Local processing — sensitive data stays on your device.
How to use
- 1Paste the JSON or XML content you want to format into the input field.
- 2Select the matching format from the menu (JSON or XML).
- 3Click format to indent and organize the content automatically.
- 4Copy the formatted result to use in code, documentation, or debugging.
Practical examples
Format an API response
Paste the raw JSON returned by a request to view it organized, with indentation and line breaks.
Validate an XML structure
Paste a compressed XML to check whether the tag hierarchy is correct and readable.
Prepare data for documentation
Format a sample JSON before pasting it into a README or an API specification.
Frequently asked questions
What is pretty print?
Pretty print formats a compressed JSON or XML into a human-readable version with proper indentation, line breaks, and spacing.
What is minify?
Minify removes all unnecessary spaces, line breaks, and indentation, reducing file size. Useful for optimizing data sent in HTTP requests.
Does the tool validate whether the JSON is valid?
Yes. If the JSON or XML is malformed, the tool indicates the error and the approximate line where it occurs.
