Skip to content

Formatters

Beautify and minify JSON, XML, HTML, CSS and more.

Formatters repair structure. The category holds a formatter, a minifier and, where it exists, a validator for JSON, XML, HTML, CSS, JavaScript and SQL, plus conversions between JSON and the formats people actually exchange — YAML, XML, CSV, Markdown, HTML tables and plain text. JSON gets the deepest treatment, with Flatten, Sort Keys, JSONL to JSON and a dedicated Validator. Everything happens on the page: a config file, a customer export or an API response pasted into these tools is parsed by your own browser and never sent to a server.

CSS Formatter

Beautify CSS with proper indentation.

CSS Minify

Remove whitespace to minify CSS.

CSV to JSON

Convert CSV data to a JSON array.

HTML Formatter

Beautify and indent HTML markup.

HTML to Markdown

Convert basic HTML to Markdown.

JS Formatter

Beautify JavaScript with indentation.

JS Minify

Minify JavaScript by removing comments and whitespace.

JSON Flatten

Flatten nested JSON into dot-notation keys.

JSON Formatter

Beautify and indent JSON data.

JSON Minify

Minify JSON by removing whitespace.

JSON Sort Keys

Recursively sort JSON object keys.

JSON to JavaScript Array

Wrap JSON in a JavaScript array literal.

JSON to CSV

Convert a JSON array to CSV.

JSON to HTML Table

Render a JSON array as an HTML table.

JSON to Markdown

Convert JSON to Markdown code block.

JSON to Plain Text

Extract values from JSON as plain text.

JSON to XML

Convert a JSON object to XML.

JSON to YAML

Convert JSON to YAML format.

JSON Validator

Check if JSON is valid and show errors.

Markdown to HTML

Convert basic Markdown to HTML.

Markdown to Text

Strip Markdown syntax to plain text.

JSONL to JSON

Convert JSON lines to a JSON array.

SQL Formatter

Beautify SQL queries with line breaks.

Text to URL Slug

Convert text to a URL-friendly slug.

XML Formatter

Beautify and indent XML.

XML to JSON

Convert XML to a JSON object.

YAML to JSON

Convert YAML to JSON format.

Base64 to JSON

Decode a Base64 string back to JSON.

CSV to JS Array

Convert CSV to a JavaScript array.

CSV to HTML Table

Convert CSV to an HTML table.

CSV to Markdown Table

Convert CSV to a Markdown table.

CSV to TSV

Convert CSV to tab-separated values.

ENV to JSON

Convert KEY=value env to JSON.

HTML Escape

Escape HTML special characters.

HTML Table to CSV

Extract an HTML table to CSV.

INI to JSON

Convert INI config to a JSON object.

JSON Indent (4 spaces)

Re-indent JSON with 4 spaces.

JSON to Base64

Encode JSON to a Base64 string.

JSON to ENV

Convert JSON to KEY=value env format.

JSON to Form Data

Convert JSON to form-urlencoded format.

JSON to INI

Convert a JSON object to INI config.

JSON to JSONL

Convert a JSON array to JSON lines.

JSON to Properties

Convert JSON to Java properties.

JSON to SQL INSERT

Generate SQL INSERT statements from JSON.

JSON to SQLite

Generate SQLite CREATE and INSERT from JSON.

JSON to TOML

Convert JSON to TOML format.

JSON Unflatten

Expand dot-notation keys back into nested JSON.

Properties to JSON

Convert Java properties to JSON.

Query String Parse

Parse a query string into JSON.

JSON to Query String

Convert JSON to a URL query string.

Text to HTML

Convert plain text with line breaks to HTML.

TOML to JSON

Convert TOML to JSON format.

TSV to CSV

Convert TSV to comma-separated values.

XML Minify

Remove whitespace between XML tags.

XML to CSV

Convert simple XML records to CSV.

Format, validate, or minify — and when

The three verbs are often confused. A formatter adds indentation so a human can read the structure; a minifier removes whitespace so a browser or a network request moves fewer bytes; a validator answers a different question entirely — is this document well formed at all. Run JSON Validator or JSON File Validator before anything else, because a file that fails to parse produces a confusing formatter error instead of a clear message about where the bracket is missing.

Minify last. Beautified code is easier to read in review and easier to diff, so minification is only worth doing for what actually ships. Keep the unminified copy, since a minified file that later throws an error is far harder to trace back to a line.

Conversions have an order of operations of their own. JSON to CSV cannot represent nested objects, so run JSON Flatten first and the export becomes a clean table. YAML round-trips lose comments and anchors, so treat YAML to JSON as one-way for anything you will keep editing by hand. Logs written one object per line are JSONL rather than broken JSON — use JSONL to JSON to wrap them into an array. For documentation, Markdown to HTML and HTML to Markdown convert in both directions, and JSON to HTML Table or JSON to Markdown renders a data set without opening a spreadsheet.