SQL Enum Formatter turns a messy list of values into a quoted, comma-separated string you can paste straight into a SQL IN clause or an ENUM column definition. Paste the values however you have them — one per line, comma-separated, or mixed with other punctuation — and it splits them apart and wraps each one in quotes.
The default separators are line breaks, commas and tabs, so the input apple, banana becomes "apple","banana". Every other punctuation or symbol character found in your input is detected and listed as a tick box, switched off until you turn it on — a dash inside 2024-01-01, an underscore inside ORDER_PAID or a dot inside 1.5 therefore never splits a value by accident.
The conversion runs entirely in your browser and works offline; nothing you paste is uploaded.
| Character | Default | Note |
|---|---|---|
| Line break | On — cannot be turned off | Each line becomes one value |
| Comma , , | On | Ready to use out of the box |
| Tab | On | Handy when you paste a column straight out of a spreadsheet |
| Full-width space · non-breaking space | Off — tick to enable | Seen when copying from Chinese web pages |
| Semicolon ; ; 、 | Off — tick to enable | Turn it on when your list came from a sentence |
| Dash - — – | Off — tick to enable | Keeps dates such as 2024-01-01 in one piece |
| Quotes " ' “ ” | Off — tick to enable | Turning them on strips the quotes around a value |
| Slash / \ | Off — tick to enable | As do brackets, asterisks and other symbols |
| Underscore _ dot . | Off — tick to enable | Keeps ORDER_PAID and 1.5 intact |
| Plain space | Never | Stays inside values, e.g. New York |
It turns a loose list of values into a quoted, comma-separated string that is ready to paste into a SQL IN clause or a SQL ENUM definition, for example "apple","banana","cherry".
Line breaks, commas (both the half-width comma and the full-width Chinese comma) and tabs. Every other character is off by default.
Open "Custom delimiters" and tick that character. Every punctuation or symbol character found in your input is already listed there, so nothing has to be typed in.
Yes. The comma is ticked by default, so untick it in "Custom delimiters" if a comma belongs inside a value. A plain space is never treated as a separator, so a value such as New York stays intact.
Yes. Switch the Quotes option to single quotes and the output becomes 'apple','banana','cherry'. Double quotes are the default.
Yes. Duplicates are removed by default, keeping the first occurrence. You can turn this off with the "Remove duplicates" checkbox.
No. Blank entries are dropped, so a trailing comma does not produce an empty "" value.
No. The conversion happens entirely in your browser and works offline; nothing you paste leaves your device.