SQL Minifier
Put an SQL statement on one line, removing comments and extra whitespace while keeping quoted text intact.
Runs in your browser. Nothing is sent anywhere.
When to use it
Use this when you need to fit a SQL query into a string in source code, a config file, an environment variable or a shell command where line breaks are not allowed.
Comments in -- and /* */ form are removed and spaces around commas, parentheses and comparison signs are collapsed, while text inside single quotes, double quotes and backticks is kept. Optimizer hints written as /*+ ... */ are comments too, so they are dropped.
How to use
- Paste SQL.
- The one-line version appears instantly.
- Click Copy or Download.
Frequently asked questions
Is the data I paste sent to a server?
No. The tool runs in JavaScript right in your browser, and Takikit has no server that receives data. You can turn off your internet after opening the page and the tool will still work.