Herramienta de separación por comas gratuita
La herramienta de separación por comas convierte una columna de valores en una lista limpia, entrecomillada y separada por comas: perfecta para cláusulas SQL IN, arrays de JavaScript o cualquier lugar donde un analizador espere elementos separados por comas.
The separated values usually become a table, so the CSV to JSON Converter and Text Column Formatter are the next steps. To clean the list of repeats first, the Remove Duplicate Lines tool is the preparer.
Cómo usar Separador por comas
- 1 Paste your list, one item per line or separated by any character.
- 2 Choose the output separator: comma, semicolon, tab or a custom string.
- 3 Choose whether to quote items and whether to trim whitespace.
- 4 Copy the joined result.
Cómo usarlo
Pega un valor por línea, elige un estilo de comillas y un separador, y copia el resultado. Las líneas en blanco y los espacios duplicados se manejan automáticamente.
- Un valor por línea de entrada, separado por comas a la salida
- Comillas simples, comillas dobles o sin comillas
- Elige separador de coma, espacio o salto de línea
- Recorta y opcionalmente elimina duplicados
- Se ejecuta enteramente en tu navegador
Preguntas frecuentes
When should a list be quoted?
Whenever items might contain the separator. An item containing a comma inside a comma-separated list is ambiguous unless it is quoted. For CSV output, quoting is standard practice for any field that could contain the delimiter, a quote or a newline.
How do I turn a SQL IN clause into a list?
By matching the quoting rules of the database. String values need single quotes; numeric values need none, and quoting them is a type error in some engines. The separator is a comma, and the quoting setting is what makes the difference between a working clause and a syntax error.
What about the trailing separator?
It should be omitted, because most parsers treat a trailing delimiter as introducing an empty final item. Some languages tolerate it and some do not, so the safe choice is never to emit one. If you need one for a code generator, that is a deliberate decision rather than a default.
Herramientas para desarrolladores relacionadas
También te puede interesar
Herramientas de otras categorías que suelen combinarse con Separador por comas: