EditSafely

Convert ASCII to UTF-8

Show the UTF-8 encoding of text as hexadecimal bytes.

Runs on your device, nothing uploaded

Output
Prefix
Case
Try:

0 chars · 0 lines

Output

Show the UTF-8 encoding of text as hexadecimal bytes.

Type or paste above to see the result here.

Example: Per character

What you paste never leaves this tab

Convert ASCII to UTF-8 is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, the text you paste is sent to a server that can log it, cache it or keep it. Here it is read and transformed inside this tab and nowhere else.

  • No upload
  • No length limit
  • Works offline once loaded
  • Nothing stored or logged

How to use Convert ASCII to UTF-8

  1. 1. Paste the text to encode. Enter your text in the input pane. The tool runs it through a UTF-8 encoder and lists each character with its bytes as hex pairs, so é shows as c3 a9 and ☕ as e2 98 95.
  2. 2. Pick an output. Per character pairs each character with its bytes. UTF-8 bytes gives one hex list with Separator chips, Bit pattern shows the 110xxxxx 10xxxxxx markers learners look for, and Text keeps the text. Prefix (\x, %, 0x) and Case chips style the bytes.
  3. 3. Spot multi-byte expansions. Pure ASCII encodes one byte per character, but anything beyond it grows: an e with an acute accent becomes C3 A9. Watching where bytes multiply is the fastest way to find non-ASCII content.
  4. 4. Copy the UTF-8 bytes. Copy the hex sequence for byte-level comparisons, wire-format documentation or encoder tests. The UTF-8 to ASCII decoder here reverses the transformation exactly.

When to use Convert ASCII to UTF-8

Convert ASCII to UTF-8 shows the actual byte sequence your text becomes in the encoding that dominates the web. Databases, HTTP bodies and files all store UTF-8 bytes, and when lengths disagree or comparisons fail, looking at those bytes in hex is how encoding mysteries get solved.

  • Diagnosing mojibake at the source. Text displays as é somewhere downstream. Encoding the original character shows its true bytes C3 A9, confirming a double-decode where each UTF-8 byte was misread as Latin-1.
  • Explaining byte-length limits. A database column truncates a 50-character string that fits on paper. The hex output demonstrates which characters take multiple bytes and why the UTF-8 length exceeded the column size.
  • Verifying encoder implementations. You wrote a UTF-8 encoder for an embedded platform without library support. Compare its byte output against this tool's for tricky inputs to certify the bit-packing logic.
  • Matching wire bytes in protocol work. A binary protocol embeds UTF-8 strings and your capture shows raw hex. Encoding the expected field values tells you the precise byte runs to search for in the trace.

Examples

Per character

Input

é☕

Output

é  c3 a9
☕  e2 98 95

Bytes

Input

Hi

Output

48 69

About the Convert ASCII to UTF-8 tool

Convert ASCII to UTF-8 does its work locally, right in the browser. Show the UTF-8 encoding of text as hexadecimal bytes. There is no upload step, no queue and no account, and your data never travels over the network.

It belongs to the ASCII Tools collection on EditSafely, a set of 81 small, focused ASCII utilities that share the same instant, private workspace.

You can shape the output with 4 settings, including Output, Separator, Prefix and Case, and the result refreshes the moment you change one. 2 worked examples further down the page show exactly what the tool produces for real inputs.

Running locally also makes the tool fast and dependable: results appear as soon as your input does, there is no server outage that can take it down mid-task, and confidential data can be processed without a second thought.

Frequently asked questions

Does Convert ASCII to UTF-8 cost anything?

Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.

Is it safe to paste sensitive or confidential data?

No data leaves your device. The whole tool is JavaScript that runs inside your browser tab, so there is no upload, no server-side processing and no log of what you did. If you disconnect from the internet after the page loads, it keeps working.

How much text can I process at once?

There is no fixed limit; your device's memory is the ceiling. Up to 10 MB the result updates as you type, after a short pause that grows with the size. Above 10 MB a Run button appears so typing stays smooth, and files open up to 50 MB. A very long result shows its first 2,000 lines on screen, while Copy and Download always include all of it.

Do I need to sign up or install anything?

Nothing to install and no account needed. Open the page in any up-to-date browser, including on a phone or tablet, and the tool is ready.

How do I use the result?

The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.

Related tools

All ASCII Tools →