Text

Text Formatter

Paste any text and get it auto-formatted. Detects JSON, XML, HTML, SQL, Markdown, CSV, JavaScript, and plain text — with live preview and diff view.

Waiting for input
Input

0 characters · 1 lines

Formatted output

0 characters · 1 lines

Related Tools

More free utilities you might find useful

Frequently Asked Questions

Quick answers to common questions

What types of text can this format?+

The formatter automatically detects and formats JSON, XML, HTML, SQL, Markdown, CSV, and plain text. It also formats JavaScript code. The detected type is shown above the output.

How does auto-detection work?+

The tool first tries to parse as JSON, then checks for XML/HTML tags, SQL keywords, Markdown patterns, and CSV structure. If none match, it applies plain text formatting rules.

Will formatting change my content?+

No. Formatting only changes whitespace, indentation, and capitalization of SQL keywords. Your actual data, values, and content are never modified.

Can I format code?+

JSON, XML, HTML, and basic JavaScript formatting is supported. For advanced code formatting of other languages, the plain text formatter will at least normalize indentation and spacing.

Does it work for large documents?+

Yes. The formatter handles documents up to several MB. For very large files, processing may take a moment. A loading indicator appears for operations over 200ms.