Text Formatter

Format JSON, HTML, and code with proper indentation.

Runs on your device No file uploads
Choose a file

Pretty-print and validate JSON, and re-indent HTML or other structured text for readability.

Input: TXT, JSON  ·  Output: TXT, JSON

Drop files here or click to browse

Accepts: TXT, JSON

About Text Formatter

What does Text Formatter do?

Text Formatter pretty-prints and validates JSON, and re-indents HTML or other structured text for readability.

Things to know

Invalid JSON is reported with the location of the error. HTML formatting re-indents tags for readability. All processing is instant and private — your code never leaves your browser.

Frequently asked questions

Does it validate JSON?

Yes — invalid JSON is reported with the location of the error.