⚡
usefultools.dev
☰

List Converter

NOVO

Convert a list between separators: clean, dedupe, sort, change case, add quotes or prefixes and output a comma list, JSON array or SQL IN (...) clause.

Funciona 100% no seu navegador — o que você insere nunca é enviado nem armazenado nos nossos servidores.

Esta ferramenta ainda não está totalmente traduzida, por isso parte do texto continua em inglês. A ferramenta funciona da mesma forma em todos os idiomas.

Clean up
7 items in → 5 out · 1 empty removed · 1 duplicate removed
⚡

Exemplos rápidos

Entradas típicas e os resultados que esta ferramenta gera.

Lines to comma
apple ↵ banana ↵ cherry
apple, banana, cherry
Dedupe + sort
b, a, c, a
a, b, c
Natural sort, JSON
file10, file2, file1
["file1","file2","file10"]
SQL IN
O'Brien, 42, smith
IN ('O''Brien', 42, 'smith')
📖

Visão geral

Lists travel in different shapes: one item per line in a spreadsheet, comma separated in a query, or a JSON array in code. This list converter reads a list with any common separator and writes it back in the shape you need.

On the way you can trim spaces, drop empty items and duplicates, sort A to Z, Z to A, by length or naturally so file2 comes before file10, reverse or shuffle the order, change the letter case, add a prefix, suffix or quotes, and number the lines.

Output as plain text, a JSON array or a SQL IN (...) clause with quotes escaped. It runs in your browser.

Por que usar esta ferramenta?

  • Turn a column of values into a comma list in seconds
  • Clean, dedupe and sort in one pass
  • Natural sort handles numbers inside names
  • Ready-made JSON array and SQL IN output
  • Your list never leaves the browser
⭐

Recursos

✂️

Any separator in and out

New line, comma, semicolon, tab, space, pipe or your own text.

🧹

Clean up

Trim items, remove empty ones and drop duplicates, with optional case-insensitive matching.

🔀

Sort, reverse, shuffle

A–Z, Z–A, natural, by length, reversed or shuffled again on demand.

🔠

Case and wrapping

UPPER, lower or Title Case, plus quotes, backticks, brackets and a prefix or suffix.

🧾

JSON and SQL output

A JSON array or a SQL IN (...) list with single quotes escaped.

📊

Live counts

See how many items went in, came out and were removed.

🛠️

Como usar

1

Paste your list

Put the items in the box and choose how they are separated.

2

Clean and order

Tick trim, remove empty or duplicates and pick a sort order.

3

Choose the output

Pick a plain list, JSON array or SQL IN list and how to join the items.

4

Copy the result

Press Copy to take the converted list.

🤔

Perguntas frequentes