BeanNestTools

Clean with a preview

Fix line-oriented text without losing the source.

Turn on only the cleanup rules you need, inspect the result beside your source, then copy it or explicitly apply it back.

Preview before replaceRuns locallyAll options off by default

Text cleaner workspace

Source

0 / 50,000 UTF-16 units

Source: 0 lines

Cleanup options

Your source is not replaced automatically

Preview

Visible before source replacement

Result: 0 lines

Operation order

When enabled, BeanNest trims/collapses whitespace first, handles blank lines, removes duplicates, then sorts. With every option off, preview matches the source.

Safe replacement

Changing an option only changes the preview. `Apply to source` is the only action that replaces the source text, and it applies exactly what is already visible.

Privacy & sorting

Everything runs in this browser tab. Sorting uses a fixed English collation rule when the browser provides it so changing device locale does not silently change the selected A–Z behavior.

Keep checking

More text tools

Case Converter

Convert text among lower, upper, sentence, title, camel, Pascal, snake, and kebab case without replacing the source.

Open tool →

Word & Character Counter

Count words, grapheme-aware characters, lines, paragraphs, and estimated reading time locally as you type.

Open tool →

Slug Generator

Generate a URL path slug with visible separator, case, Unicode, and narrow ASCII-friendly rules locally.

Open tool →

Working notes

How to use this tool

  1. Paste the text you want to clean.
  2. Select the operations, such as trimming lines, removing duplicates, normalizing whitespace, handling blank lines, or sorting.
  3. Review the preview before applying the change.
  4. Copy the cleaned result while keeping the original source.

Limits to know

Cleanup is line-oriented and does not understand sentences, code, or markup. Duplicate detection may treat lines with different spacing as distinct until whitespace normalization is applied. Sorting uses a simple text order, not a locale-aware collation.

What stays on this device

The source and preview remain in this tab and are not uploaded or persisted.

Common questions

Can I undo a cleanup?

Yes, until you replace the source. The preview is separate from the original, so compare it before copying the cleaned text back into your document.

How are duplicate lines detected?

After the selected whitespace rules are applied, identical remaining lines are treated as duplicates. Change the options if you need case-sensitive or exact-spacing comparisons.