Skip to content
OddsockLocal
Local
Source text

Formatting

5 wordsRuns in this browser. Nothing is uploaded.

How to use

  1. Paste the text, or drop a text, CSV, or Markdown file.
  2. Leave Operation on trim, or pick the single repair you want.
  3. Turn on ignore case only if you are deduplicating and “Odd” should match “odd”.
  4. Copy the result, then change Operation if a second repair is still needed.

What is Text cleaner?

Copied text is rarely one kind of mess. A PDF list arrives with a space at both ends of every line. A chat export doubles blank lines. A spreadsheet dump repeats a header. Text cleaner keeps those repairs on one Operation menu and runs only the one you pick, so you can see the change before you choose the next repair.

Read more

The menu opens on trim. Each line loses the spaces and tabs at its ends. The gaps between words stay, and a line that is only a space stays, because a space-only line is not trailing space. Collapse spaces is the operation that turns “Odd socks” into “Odd socks”. Remove empty lines is the one that deletes a line with nothing but whitespace. Dedupe keeps the first copy. Sort, reverse, and shuffle reorder lines. Strip HTML, straighten curly quotes, and remove line numbers, emails, or URLs are the other choices.

Ignore case matters only while deduplicating. On trim, sort, or strip it does nothing. A sentence that is already tight does not move: “Odd socks in the dryer.” comes back with the same words and the same period.

Use cases

  • An editor cleaning a PDF table of contents that indented every line.
  • A support lead collapsing double spaces in a pasted chat before filing it.
  • A researcher dropping the blank lines a web page inserted between paragraphs.
  • A developer stripping tags from a CMS export before it goes into a plain-text field.
  • Someone who wants one screen for sort, reverse, and dedupe instead of three tabs.

Trim on a padded two-line note

Two lines, each with spaces at both ends: “ Odd socks ” and “ in the dryer. ”. Operation left on trim.

Odd socks in the dryer. The words and the period stay. Only the padding on each end is gone. Interior double spaces would still be there.

Why use Oddsock

Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.

Related tools

Using this tool

Trim only touches the ends of lines. Choose collapse spaces when the mess is inside the line.