Tools · text-cleaner

Text Cleaner

Paste anything messy in and get clean text out. Stray line breaks, double spaces, curly quotes, leftover HTML, emoji, repeated words: switch on the fixes you want and the clean copy appears as you type. It all happens in your browser. Nothing you paste is sent anywhere, and there are no ads.

Out of the box it turns whatever you paste into plain text. The presets under the boxes cover the other usual jobs: a gentle tidy, a paste from Word, a column headed for a spreadsheet, or just the words.

01

Why I made this

I paste text between programs all day, and every free cleaner I found was buried in ads or quietly sent the text to a server. This one is small, fast, and honest about what it does. If a fix you need is missing, email me and I will add it.

02

What it cleans

Spaces and lines (trim, single spaces, blank lines, joining everything into one paragraph), characters (straight quotes and dashes, accents, emoji, look-alike letters, plain ASCII), HTML and links (strip tags, decode &-style and %20-style codes, remove web and email addresses), words and lines (list bullets and numbers, punctuation spacing, repeated words, duplicate lines), the case of the whole text, and a simple find and replace.

03

Is my text private?

Yes. Here is exactly how, for anyone who would rather check than trust.

  • This page is a static file. There is no server program behind it and no database. Cloudflare's job ends when it hands the file to your browser.
  • The cleaning is done by one small script, about three hundred lines, that runs inside your browser. You can read it at erikmaier.com/static/tools/text-cleaner/transforms.js. Your text goes from the left box, through that script, into the right box, and nowhere else. The page never uses the parts of the browser that could turn pasted text into working code.
  • The page ships with a Content-Security-Policy header. That is a rule the browser enforces: this page may only talk to erikmaier.com itself, and may only run scripts that are its own files. Even if someone slipped extra code onto the page, the browser would refuse to let it send anything anywhere.
  • There are no ads, no trackers, and no analytics script on this page. The only things it loads are its own files and two fonts from Google Fonts, all before you paste a single character.
  • Copy puts the clean text on your clipboard. Download writes a file on your own computer. Neither uploads anything.
  • The only thing the page remembers is which switches you left on, in your browser's local storage. Never the text.
  • To check for yourself: open your browser's developer tools, go to the Network tab, and paste something. Nothing new appears. Or turn your internet off after the page has loaded. The cleaner keeps working.
02 · Transmit

Please feel free to reach out to me directly

Location

Troy, MI 48083

Social

Contact

ErikPMaier@gmail.com