Liste SQL ↔ Lignes|Options
Entrée
e.g. ('apple', 'banana', 'cherry')
Sortie
e.g. apple banana cherry

SQL List ↔ Lines Converter Online — Convert SQL IN Clauses to Lines

Need to convert a SQL IN clause like ('a', 'b', 'c') into plain text lines, or turn a list of values into SQL format? This free tool handles both directions with configurable quote styles and formatting options.

Comment Utiliser Cet Outil

  1. Choose directionSelect "SQL → Lines" to extract values from a SQL list, or "Lines → SQL" to create a SQL IN clause from text lines.
  2. Paste your inputPaste a SQL IN clause like ('a', 'b') or paste newline-separated values.
  3. Configure outputFor Lines → SQL, choose single quotes, double quotes, or no quotes. Toggle formatted output for one value per line.
  4. Copy the resultThe converted output appears instantly. Click Copy to paste into your SQL query.
  5. Chain with other toolsWith Auto-fill enabled, your output automatically carries over when you open another tool from the sidebar. Use the back and forward arrows to undo navigation and restore your previous tool state including all options.

Fonctionnalités

Bidirectional Conversion

Convert from SQL IN clause to lines or from lines to SQL format with a single mode switch.

Quote Style Options

Choose between single quotes, double quotes, or no quotes when generating SQL output.

Formatted Output

Toggle between compact inline format and formatted output with one value per line for readability.

Smart Parsing

Automatically strips parentheses and quotes when parsing SQL input. Handles both single and double quoted values.

Skip Empty Lines

When converting lines to SQL, optionally skip blank lines to keep the list clean.

Complete Privacy

All processing runs in your browser. Your data never leaves your device.

Auto-fill Pipeline

Enable Auto-fill to carry your output to the next tool. Navigate back and forward with full state restoration — input, output, and all settings are preserved.

Cas d'Utilisation Réels

1

Convert a list of IDs into an SQL IN clause

Paste a list of user IDs or product codes and instantly generate a formatted SQL IN(...) clause ready to use in your database query.

2

Extract values from SQL output into a plain list

Take SQL query output formatted as an IN clause and convert it back into a plain list with one value per line for spreadsheets.

Questions Fréquemment Posées

What is a SQL IN clause?
A SQL IN clause is used to filter results matching any value in a list, like WHERE name IN ('Alice', 'Bob', 'Charlie'). This tool converts between that format and plain text lines.
Which quote style should I use?
Use single quotes for string values in most SQL databases (MySQL, PostgreSQL, SQL Server). Use no quotes for numeric values. Double quotes are used for identifiers in some databases.
Can I paste a SQL IN clause with numbers?
Yes. The tool parses comma-separated values regardless of whether they are quoted or not.
What does formatted output look like?
Formatted output places each value on its own line with indentation, making long lists easier to read in SQL queries.
Does it handle nested parentheses?
The tool strips the outermost parentheses and splits by comma. It is designed for flat value lists, not nested SQL expressions.
Is my data stored anywhere?
No. All processing happens in your browser. Your data is never sent to any server.

Outils Connexes

Tout le traitement du texte se fait directement dans votre navigateur. Votre texte n'est jamais envoyé à un serveur, stocké ou partagé avec des tiers. Cet outil est totalement privé et sécurisé.