Turn a nicely formatted query into one compact line for a config file, environment variable, log message or JSON payload. Line breaks and extra spaces go, comments are removed (or kept safely as /* */), and strings and quoted names stay exactly as written. Optimizer hints such as /*+ INDEX(...) */ are always kept.
Decides which quotes and comments are recognised.
-- comments become /* */ so they can't swallow the rest of the line. Optimizer hints (/*+ ... */) are always kept.
375 characters to 350 (7% shorter). Strings and quoted names are never changed.
Processing runs in your browser. What you type never leaves this device.
One line, single spaces
Removes -- and /* */ comments, or keeps them safely
Keeps optimizer hints (/*+ */ and MySQL /*! */)
Never touches strings or quoted names
Shows how much shorter the query became
Store a query in a .env file or YAML value without multi-line quoting.
Send a query inside JSON without escaping every line break; [JSON escape](/tools/json-escape) handles the quotes.
Normalise queries to one line before grouping or comparing them.
A -- comment runs to the end of the line. On a one-line query it would hide everything after it, so when you keep comments they are rewritten as /* */.
Make a query readable again with the SQL formatter.
SQL Formatter
Beautify SQL for PostgreSQL, MySQL, SQLite and SQL Server
JSON Escape
Text to a JSON string literal
JavaScript Minifier
Minify JavaScript to reduce file size
CSS Minifier
Minify CSS to reduce file size
JSON Formatter
Format and validate JSON
JSON Sort Keys
Alphabetize JSON keys at every level
JSON Flatten
Nested JSON to dot-path keys
JSON Unflatten
Dot-path keys back to nested JSON
Built by Edesy
Edesy builds AI products for Indian businesses. Start self-serve, no demo call needed.
AI agents that answer and make phone calls 24/7. Handle appointments, inquiries and support in Indian and global languages.
₹50 free credit. No demo call needed.