← All tools/Minifiers/Code
Code Minifiers
Smaller, cleaner code, in your browser.
CSS Formatter
Beautify messy CSS into readable, indented code, entirely in your browser — no upload, no account.
CSS Minifier
Minify CSS in your browser: comments and extra whitespace removed, strings left untouched. See bytes saved at once.
CSV to JSON Converter
Convert CSV text to JSON in the browser — nothing is uploaded, all conversion happens on your device.
HTML Formatter
Format messy HTML into clean, indented code in your browser — paste it in, pick an indent, copy the result.
HTML Minifier
Minify HTML in your browser: comments removed and whitespace between tags collapsed. See bytes saved at once.
JavaScript Formatter
Format messy JavaScript into clean, indented code in your browser, with 2-space, 4-space or tab indent and a download option.
JavaScript Minifier
Minify JavaScript in your browser: comments and extra whitespace removed, strings left untouched. See bytes saved at once.
JSON Formatter
Format or minify JSON in your browser: pretty-print with indentation or compress to one line, with clear errors.
JSON Minifier
Paste pretty JSON and get compact minified JSON back, with bytes saved and a copy button.
JSON to CSV Converter
Turn a JSON array of objects into a CSV file that opens in Excel or Google Sheets. No upload, no sign-up.
JSON to YAML Converter
Convert JSON to YAML instantly — free, in-browser, no upload. Ideal for config files, APIs and moving data into YAML tools.
JWT Decoder
Decode a JWT in your browser to see its header, payload claims and expiry. The token never leaves your device.
Regex Tester
Test a regex against sample text with live match highlighting, capture groups and flags — debug patterns before using them in code.
SQL Formatter
Format SQL queries readably in your browser — keywords in capitals, one clause per line, free, no data sent anywhere.
XML Formatter
Format and indent XML documents in your browser with 2-space indentation — free, no data sent anywhere.
XML Minifier
Shrink XML by removing extra whitespace, comments and the declaration — without changing its elements or text.
XML to JSON Converter
Convert XML to JSON instantly — free, in-browser, no upload. Ideal for APIs, feeds and moving legacy XML data into modern apps.
YAML Formatter
Format and validate YAML in your browser: fix indentation, catch syntax errors with the exact line and column, and copy the result.
YAML to JSON Converter
Convert YAML into JSON — and JSON back to YAML — entirely in your browser. Nothing is uploaded.
About these code tools
Minifiers and formatters are the tools developers reach for when code needs to be smaller or easier to read. A minifier strips out the characters a browser does not need — comments, extra spaces and line breaks — so a file downloads faster. A formatter does the opposite: it takes compressed or messy code and lays it out with clean indentation, so a human can read it and find a mistake.
Everything on this page runs in your browser. Your code is never uploaded to a server, which matters when the code belongs to a client or contains private details. Paste the code, and the result appears at once, with the number of bytes saved shown for the minifiers.
The set covers the formats a working developer meets most: CSS and JavaScript for the front end, HTML for pages, JSON for data and APIs, SQL for databases, XML for configuration and feeds, and CSV to JSON for turning a spreadsheet export into data a program can use. Whether the job is shipping a smaller file or untangling a one-line blob of JSON from an error log, there is a tool here built for that exact step.
Which one to use
- To ship smaller files: the CSS Minifier, the JavaScript Minifier, the HTML Minifier and the JSON Minifier. Each shows the bytes saved, so you can see whether minifying was worth it.
- To read messy or compressed code: the CSS Formatter, the JSON Formatter, the SQL Formatter and the XML Formatter. Paste the blob, get clean indentation back.
- To move data between formats: the CSV to JSON Converter, which turns a spreadsheet export into JSON in the browser, with nothing uploaded.
- JSON Formatter or JSON Minifier? Use the Formatter when you need to read or debug JSON — it pretty-prints with indentation. Use the Minifier when you need to send or store it — it compresses the same JSON to one line. If the JSON is invalid, the Formatter reports a clear error instead of guessing.
Frequently asked questions
Does minifying change what my code does?
No. A minifier removes only whitespace and comments, and leaves strings untouched, so the logic and the values stay exactly the same — a minified stylesheet still styles the page the same way, and minified JavaScript still runs the same way. Keep your original file for editing and ship the minified copy, because minified code is hard to read and harder to fix by hand.
What is the difference between a minifier and a formatter?
They do opposite jobs on the same code. A minifier makes a file smaller for the browser by removing characters the browser does not need. A formatter makes code readable for a person by adding indentation and line breaks. Use a minifier before publishing, and a formatter when you are debugging — never edit a minified file directly when you have the original.
Is my code uploaded anywhere?
No. Every tool on this page runs entirely in your browser — nothing is sent to a server, and there is no account or upload step. That is why these tools are safe for client code and private projects. Even so, it is good practice not to paste live passwords or secret keys into any browser tool, including these.
Which tool do I use for a one-line JSON blob from an API?
Use the JSON Formatter. Paste the one-line JSON and it pretty-prints it with indentation, so you can see the structure and find the field you need. When you are done, the JSON Minifier compresses it back to one line for sending or storing. If the blob has a missing bracket or a stray comma, the Formatter reports a clear error so you know what to fix.