Format Code Now
/
Encode & decodeUTF-8 to ASCII Converter Next: XML URL Decoding ›

UTF-8 to ASCII Converter

ED-38

Paste text with accents, curly quotes or symbols and get plain ASCII back. Pick the closest letters, escapes, HTML numbers, a question mark or removal.

Runs in your browser. Nothing is uploaded.

Text

Result

How to use it

  1. Paste your text into the input box.
  2. Choose what non-ASCII characters should become.
  3. Click Convert to ASCII, or Find non-ASCII to see where each one is.
  4. Copy the result.

Closest letters mode

This mode removes accents from Latin letters (é becomes e, ß becomes ss), replaces a short fixed list with ASCII text (curly quotes, en and em dashes, the ellipsis, bullets, the euro and pound signs, the non-breaking space) and writes a question mark for everything it cannot map, such as Chinese characters or emoji. It also normalizes the text first. This loses information, so keep the original if you need it.

Modes that keep information

The \uXXXX mode writes one escape for every non-ASCII UTF-16 unit, so an emoji gives two. HTML numbers write the Unicode code point as é, one per character. The question mark and removal modes drop the detail on purpose. Find non-ASCII lists each such character with its line, column, code point and the number of bytes it takes in UTF-8, which helps when a system rejects your text.

Error messages and what to do

MessageWhat it meansFix
has no HTML entityThe text has half of a surrogate pair, which is not a character.Remove or repair the broken character.

Questions people ask

How do I convert UTF-8 text to ASCII?

Paste the text, choose a mode and click Convert to ASCII. The closest letters mode turns Café into Cafe. Other modes write escapes such as \u00e9 or HTML numbers such as é so no information is lost.

Why did some characters turn into question marks?

They have no ASCII equivalent that the tool knows, such as CJK characters or emoji. Choose the escape or HTML numbers mode if you need them preserved, or remove them with the last mode.

How do I find non-ASCII characters in my text?

Click Find non-ASCII. The tool lists each character outside ASCII with its line and column, Unicode code point and UTF-8 byte count. If none exist, it says the text is already plain ASCII.

Is UTF-8 the same as ASCII?

Only for the first 128 characters. UTF-8 stores those as one byte each, the same as ASCII, and uses two to four bytes for everything else. So plain English text is valid in both, and text with accents is not ASCII.

Does it turn curly quotes into straight quotes?

In closest letters mode, yes. Curly single and double quotes become straight ones, dashes become hyphens, and the ellipsis becomes three dots. The other modes keep the character through an escape instead.

About this tool

ASCII is the first 128 characters. The closest-letters mode removes accents from Latin letters, maps a short fixed list (curly quotes, dashes, the ellipsis, the euro sign, the non-breaking space) to ASCII text, and turns everything else, such as Chinese characters or emoji, into a question mark. It also normalizes the text first. The other modes keep the information: \uXXXX writes one escape per UTF-16 unit (so an emoji becomes two), HTML numbers write the code point, and the last two replace or drop the character. Find non-ASCII gives the line, column and code point of each one.

Format Code Now: free, no ads, no accounts. Your input stays in your browser.