Clean Text · browser-local

Comma to Line Converter

Turn a comma-separated list into a clean vertical list. Each item is trimmed, and empty items produced by trailing or doubled commas are dropped.

Works on up to 5,000 characters and 20,000 code points per field (at most 64 code points per character), processed in your browser.

25 graphemes25 code points25 bytes

Live result

Output

red
green
blue
yellow

Good fit

Use this tool when

  • You pasted a comma list and need one item per line.
  • You are moving values from a CSV cell into a list.
  • You want to feed items into Sort Lines or another tool.

Keep the original

Avoid it when

  • Your data contains commas inside quoted fields.
  • You need to split on tabs or semicolons instead.
  • You must keep empty positions from the original list.
01

Reviewed truth vectors

Examples that expose the edge cases

Inputred, green, blue, yellow
Outputred green blue yellow

Each item is trimmed of surrounding spaces.

Inputa,,b,
Outputa b

Empty items from doubled or trailing commas are dropped.

Inputone
Outputone

A single value with no comma passes through unchanged.

02

Transparent implementation

How it works

  1. 01

    Split the input on comma characters.

  2. 02

    Trim whitespace around each resulting item.

  3. 03

    Drop empty items and join the rest with newlines.

03

Known limitations

What the result cannot promise

Commas inside quotes are still treated as separators.

Only the comma is used as a delimiter.

Empty items are removed, so blank positions are not preserved.

04

Questions before copying

Frequently asked questions

Does it handle quoted CSV fields?

No. It is a plain comma splitter; a value like "Smith, John" in quotes would be split at the comma.

What happens to extra spaces?

Each item is trimmed, so surrounding spaces are removed.

Can I split on semicolons?

Not in this tool. It splits on commas only.

05

Testing and sources

How this tool is tested

GlyphSift Editorial — Text-engine notes written and reviewed by Hommer Zhao, Founder & General Manager

GlyphSift Editorial is the site's writing and review process, led by Hommer Zhao, who is accountable for every tool page and correction. Each tool's examples are written against real Unicode edge cases and checked against the engine before the page is published.

Each tool page is reviewed against the same six input classes the engine is tested with — ASCII, emoji, combining marks, non-Latin scripts, empty input, and 5,000-grapheme input — and cannot become eligible if it is only a parameter variation of another page.

Automated evidence

  • Tool-contract & coverage suiteShared suite · 37 cases across all tools it covers

    tests/tools-30.test.mjs mirrors the ToolRunner dispatch and asserts every registered engineId returns the contracted output shape, plus a coverage guard: every style keeps one output character per input character with unmapped characters passed through in place, and strikethrough, zalgo and upside-down never drop or split a grapheme cluster.

    Run in: node --test after a production build (vinext build)
  • Rendered-HTML suiteShared suite · 26 cases across all tools it covers

    tests/rendered-html.test.mjs renders the deployed server bundle and asserts the Unicode-version manifest and each wave's tool markup are present in the server-rendered HTML.

    Run in: node --test against the built dist/server bundle
  • Transform & cleanup suiteShared suite · 38 cases across all tools it covers

    tests/transform-cleanup.test.mjs exercises each deterministic cleanup and transform action against whitespace, duplicate, ordering, casing, and HTML-to-text edge cases.

    Run in: node --test, no network, no randomness

Standards this tool follows