Code & web

Text to ASCII / Unicode codes

Decimal, hex, binary and UTF-8 codes for every character in a text.

Embed this calculator on your website

Copy this code and paste it into your page (WordPress, Wix, Webflow, HTML…). It's free: please keep the link to HOD Calc.

How it works

Every character has a Unicode code point (A = 65 = U+0041). The first 128 are ASCII. In UTF-8 a character takes 1 to 4 bytes.

Results are for guidance only and do not replace professional advice.

Worked example

With the default values:

  • TextHé ! €
  • FormatDecimal

you get:

  • Characters6
  • UTF-8 bytes9
  • Non-ASCII2

Frequently asked questions

How does the “Text to ASCII / Unicode codes” tool work?

Every character has a Unicode code point (A = 65 = U+0041). The first 128 are ASCII. In UTF-8 a character takes 1 to 4 bytes.

What do I need to enter?

Just fill in: text, format. The result updates as you type.

Can you give an example?

Text: Hé ! €; Format: Decimal → Characters: 6; UTF-8 bytes: 9.

Is this calculator free, and is my data private?

Yes. HOD Calc is completely free with no sign-up. The calculation runs in your browser: nothing you type is sent or stored.