MMaster Tools
DeveloperRuns on your device

HTML Formatter

Reindent and restructure HTML markup with consistent spacing and a clean tag hierarchy.

How it works

  1. 1

    Paste your HTML into the input area — the result updates as you type.

  2. 2

    Adjust the indent size if your project uses a different convention.

  3. 3

    Copy the formatted output or download it as a file. Nothing leaves your browser.

Questions

What does this tool actually do to my HTML?

It applies consistent indentation and collapses extra blank lines so the tag hierarchy is easy to scan.

Will it fix broken HTML?

No — formatting only affects whitespace and indentation. Invalid markup stays invalid.

Is my code uploaded anywhere?

Never. All formatting runs inside your browser and nothing is sent to any server.

JSON Formatter

JSON Formatter

Paste compact or messy JSON and get it back neatly indented with your chosen spacing.

JSON Minifier

JSON Minifier

Remove all whitespace and line breaks from a JSON document to shrink it as small as possible.

JSON Validator

JSON Validator

Check whether a JSON string is well-formed, and see the exact line and column of any syntax error.

JSON Beautifier

JSON Beautifier

Reformat JSON with sorted keys and readable indentation for easier reading and diffing.

JSON Tree Viewer

JSON Tree Viewer

Explore a JSON document as an interactive collapsible tree — expand and collapse any node.

XML Formatter

XML Formatter

Pretty-print XML with configurable indentation, preserving attributes, comments, and tag order.

XML Validator

XML Validator

Check XML for well-formedness and report every error with its line and column number.

YAML Formatter

YAML Formatter

Normalize and re-indent YAML, or convert it to JSON, with a configurable indent width.