Text Utility

Text Cleanup Tool

Clean awkward line breaks, repeated whitespace, unwanted characters, and comma or line-separated lists with four focused modes on one page.

Four cleanup modesUse separate settings for line breaks, delimiters, whitespace, and character filtering.
Review each changeCompare character counts and the number of processed items or removed characters.
Browser processingYour text is processed in this browser and is not stored on the server.
TEXT CLEANUP

Choose a cleanup task and settings

Select the task that matches your goal, review its options, and then enter the source text.

Ready
Cleanup task

Line break behavior

0 chars
0 chars
Characters 0 → 00 removedLine breaks
Choose a cleanup task and enter source text.
Practical guide

Clean copied text without losing paragraphs or list structure

Line breaks, spaces and punctuation can carry meaning. Choose one cleanup operation, review the result, and only then apply another. The tool does not understand sentence grammar or quoted CSV fields.

Who this helps

  • People cleaning text copied from PDF pages or documents.
  • People converting simple comma-separated or line-separated lists.

When to use this tool

  • Join wrapped lines inside a paragraph while keeping paragraph breaks.
  • Convert a simple comma list to one item per line and remove duplicates.

From input to a checked result

  1. 1

    Keep a copy of the original and decide which structure must remain.

  2. 2

    Choose line breaks, delimiters, whitespace or character filtering. The input limit is 500,000 UTF-16 units.

  3. 3

    Set the mode and options. For lists, choose source and output separators and whether to trim or deduplicate items.

  4. 4

    Process and compare the actual output with the original, including punctuation and blank lines.

  5. 5

    If another operation is needed, move the result into the input and process one step at a time.

Example 1

Keep paragraph breaks

Input
First line Second line Next paragraph
Result
First line Second line Next paragraph

Choose paragraph mode. Consecutive LF breaks separate paragraphs; a line containing only spaces is not the same as a completely empty line.

Example 2

Deduplicate a simple list

Input
apple, banana, apple, orange
Result
apple banana orange

Choose comma input, newline output, trim items and remove duplicates. The first occurrence keeps its position.

Example 3

An identifier filter

Input
AB-123 #New
Result
AB123 New

Keep Latin letters, numbers and spaces. This deliberately removes punctuation, so it is unsuitable for preserving arbitrary prose or code.

How it works

CRLF and CR become LF. Line mode joins lines or paragraphs. Delimiter mode splits literal separators, trims items and optionally removes duplicates using case-insensitive comparison for the page language. It supports up to 100,000 items. Character filtering retains selected Unicode script/number/whitespace groups.

Limitations

  • A soft visual wrap is not a stored newline and cannot be removed as one.
  • Line-end hyphenation is not reconstructed automatically.
  • Delimiter mode is not a CSV parser: commas inside quoted fields are still split.
  • Character filtering may remove accents encoded as separate combining marks, punctuation and emoji. Japanese text containing kanji needs the Han option as well as kana.
Your data

Input and output are processed locally in the browser. This tool does not send the text to the win-j server.

Frequently asked questions

Can it correctly parse a CSV file with quoted commas?

No. The selected separator is split literally. Use a CSV-aware tool if a field can contain commas, quotes or line breaks.

Does duplicate removal change the order?

It keeps the first occurrence and its spelling, then removes later case-insensitive matches. It does not sort the list.

Why did a word stay hyphenated?

The tool joins or removes line breaks but does not infer whether a hyphen is part of a word. Review such cases manually.

Will the character filter preserve Japanese kanji?

Select Han as well as the Japanese kana option. Review the result because punctuation and combining marks have separate Unicode properties.