Skip to content
PithLab

↑↓ to move · Enter to open · Esc to close

Text Cleaner: Strip HTML, Fix Quotes and Unicode

Strip HTML, straighten quotes, remove emoji and normalise text.

Clean-ups
Use via API

Clean pasted text: strip HTML to plain text, straighten smart quotes, plain dashes and ellipses, remove emoji or non-ASCII characters, Unicode-normalise and fix line endings. Send JSON, get JSON back.

POST https://pithlab.com/api/v1/tools/text-cleaner

curl https://pithlab.com/api/v1/tools/text-cleaner \
  -H "Authorization: Bearer $PITHLAB_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":"<p>“Smart” quotes — and more…</p>","stripHtml":true,"dashes":true}'

Fields and responseOpenAPI documentGet an API key

About the Text Cleaner

Clean messy text in one go: strip HTML tags, straighten smart quotes and dashes, remove emoji or non-ASCII characters, normalise Unicode and fix mixed line endings.

How to use the Text Cleaner

  1. Paste the text you want to clean, for example something copied from a web page or a word processor.
  2. Tick each clean-up you need, such as Strip HTML tags or Smart quotes to straight quotes.
  3. Choose a Unicode normalisation form and line ending style if needed.
  4. Copy or download the cleaned text.

Examples

Strip HTML tags

Input

<p>Hello <b>world</b> &amp; friends</p>

Output

Hello world & friends
Smart quotes and dashes

Input

“It’s fine” – she said

Output

"It's fine" - she said
Remove emoji

Input

Great job 👍🏽 team 🎉

Output

Great job  team 

Frequently asked questions

Is stripping HTML safe?

Yes. The HTML is treated as plain text and tags are removed with pattern matching. It is never loaded into the page, so scripts in it cannot run. Script and style blocks are removed completely.

What does Remove non-ASCII do with accented letters?

Accented letters are converted to their plain forms first, so café becomes cafe. Other characters outside ASCII, such as emoji or Chinese characters, are removed.

What is the difference between NFC and NFKC?

NFC joins letters and their accents into single characters without changing meaning. NFKC also replaces compatibility characters, such as the fi ligature becoming fi and full-width letters becoming normal ones.

Why would I change line endings?

Windows uses CRLF line endings while macOS and Linux use LF. Mixed endings can upset version control and scripts. Choose LF or CRLF to make every line the same.

Are copyright and trademark symbols treated as emoji?

No. ©, ® and ™ are kept when removing emoji, because they are usually part of the text rather than decoration.