Muhawwil

Free text and developer tools that run in your browser.

Text cleaner: remove extra spaces, hidden characters and formatting

Paste text copied from a PDF, an email or a web page and get a clean version. Choose what to remove: extra spaces, empty lines, hidden characters, HTML tags, diacritics and more.

Your text stays on your device. Nothing is uploaded.

How to use it

  1. Paste the messy text in the first box.
  2. Tick the clean-up options you want.
  3. Copy the clean text from the second box.

Questions

What are hidden characters?

Characters you cannot see, such as zero-width spaces and text-direction marks. They often come with text copied from web pages or chat apps and can break searches, passwords and Arabic text direction.

How do I fix text copied from a PDF?

Turn on "Join broken lines into paragraphs". Lines inside a paragraph are joined, and blank lines between paragraphs are kept.

Can it remove Arabic tashkeel?

Yes. Tick "Remove Arabic diacritics" to strip fatha, damma, kasra, shadda and the other marks, and "Remove tatweel" to delete the stretching character.

About this tool: Text cleaner

The cleaner is useful before pasting text into a CMS, a spreadsheet, a form or a translation tool. It only removes what you tick, and it shows how many characters were removed so you can see what changed.

More tools

JSON formatterPaste JSON to format it so it is easy to read, minify it to one line, or check that it is valid.Base64 encode / decodeTurn text into Base64 or decode Base64 back into text.URL encode / decodeEncode text so it is safe inside a link, or decode a long percent-encoded link back into readable words.Regex testerWrite a regular expression and test it against your text.