# Text Cleaner

> Fix spaces, quotes, empty lines and stray HTML. Runs entirely in your browser — nothing you paste is sent anywhere.

Source: https://toffeekit.com/tools/text-cleaner

**Category:** [Text](https://toffeekit.com/category/text) · **Price:** Free · **Runs:** in your browser, nothing is uploaded

Open the tool: https://toffeekit.com/tools/text-cleaner

**Also useful for:** clean, spaces, quotes, line breaks

## How it works

1. Paste your messy text into the input box, or click Sample to see what it fixes.
2. Switch on the fixes you want: Trim lines, Collapse spaces, Remove empty lines, Straighten quotes, Join into one line or Strip HTML tags.
3. Check the cleaned text in the result box. It updates as you toggle options.
4. Click Copy or Save to take the cleaned text with you.

## FAQ

### How do I remove extra spaces from text?

Turn on Collapse spaces to squash runs of spaces and tabs into one space, and Trim lines to remove spaces at the start and end of each line.

### How do I remove line breaks from copied text?

Turn on Join into one line. All lines are merged into a single paragraph separated by single spaces, which fixes text copied from PDFs with hard line breaks.

### How do I get rid of blank lines?

Keep Remove empty lines on. Any line with nothing but whitespace is dropped.

### How do I convert smart quotes to straight quotes?

Switch on Straighten quotes. Curly quotes become plain " and ', an ellipsis becomes three dots, and long dashes become hyphens. This helps when pasting into code or CSV files.

### How do I strip HTML tags from pasted text?

Turn on Strip HTML tags. Anything between angle brackets is removed and the text content is kept.

### Is Text Cleaner free and private?

Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so what you type or paste never leaves your device. It works on phones and computers alike.

## Privacy

Text Cleaner runs entirely in your browser. Your files and text are processed on your device and are never uploaded.

## Related tools

- [Word Counter](https://toffeekit.com/tools/word-counter) — Words, characters, sentences and reading time, live.
- [Case Converter](https://toffeekit.com/tools/case-converter) — UPPER, lower, Title, camelCase, snake_case and more.
- [Remove Duplicate Lines](https://toffeekit.com/tools/remove-duplicate-lines) — Keep only unique lines, in order.
- [Sort Lines](https://toffeekit.com/tools/sort-lines) — Sort A–Z, naturally, by length, or shuffle.
- [Find and Replace](https://toffeekit.com/tools/find-and-replace) — Replace words or regex patterns in bulk.
- [Slug Generator](https://toffeekit.com/tools/slug-generator) — Turn titles into clean URL slugs.

