Text Sanitizer

Paste any text below and convert it to the 98-character ASCII whitelist (the 95 printable ASCII characters plus tab, line feed, and carriage return). All processing happens in your browser -- nothing is sent anywhere.

What it does

  • Converts smart quotes to straight quotes
  • Converts em dashes to double hyphens and en dashes to a single hyphen
  • Converts ellipsis to three periods and non-breaking spaces to spaces
  • Removes zero-width characters entirely
  • Strips everything else that falls outside the whitelist
Ready.