Minify SQL
Put an SQL query on a single line: comments and extra white space removed, strings and quoted names left untouched.
Put an SQL query on a single line: comments and extra white space removed, strings and quoted names left untouched.
Runs entirely in your browser: nothing you type is sent or stored.
-- … up to the end of the line, and /* … */. Without line breaks, a -- comment would swallow the rest of the query./*+ INDEX(t idx) */) and MySQL executable comments (/*! … */) are kept: they change how the query runs.'New York' stays 'New York'.'it\'s'), standard SQL doubles it ('it''s'); MySQL treats # as a comment, PostgreSQL as an operator. An unclosed string or comment is reported with its line.