Beginner

Unicode Text Calculator — Code Point & UTF-8 Byte Converter

Type any text — English, accented characters, emoji, CJK, Arabic or any other script — to see each character as a Unicode code point (in hex U+XXXX, decimal or binary), count the total UTF-8 bytes, and view a breakdown of ASCII versus non-ASCII characters.
Supports all Unicode: accented letters, emoji, CJK, Arabic, etc.

Code point format

Unicode code points
U+0048 U+0065 U+006C U+006C U+006F U+0020 U+0057 U+006F U+0072 U+006C U+0064
Characters (code points)
11
UTF-8 bytes
11
Unique code points
8
Non-ASCII characters
0
100%
ASCII (U+0000–U+007F)
Character distribution by Unicode range
Is meastacháin iad na torthaí le haghaidh eolais ghinearálta amháin agus ní comhairle ghairmiúil iad — fíoraigh torthaí tábhachtacha go neamhspleách i gcónaí sula mbraitheann tú orthu. Léigh an séanadh iomlán.
Freagra tapa

Conas a oibríonn an t-áireamhán seo?

Unicode assigns each character a numeric code point (0–1,114,111). UTF-8 encodes them as 1 byte (ASCII), 2 bytes (U+0080–U+07FF), 3 bytes (U+0800–U+FFFF) or 4 bytes (U+10000+). Type any text to see every code point and the total UTF-8 byte count — useful for database column sizing, API limits, and understanding why emoji and CJK text take more bytes than ASCII.

Foirmle
UTF-8 bytes: 1 byte (U+0000–U+007F) · 2 bytes (U+0080–U+07FF) · 3 bytes (U+0800–U+FFFF) · 4 bytes (U+10000–U+10FFFF)
How this is calculated

Unicode assigns a unique numeric code point to every character in every writing system, from ASCII letters (U+0041 = "A") to emoji (U+1F600 = 😀) and rare historic scripts. Code points are conventionally written in hexadecimal with the U+ prefix. JavaScript iterates over Unicode scalar values using the for…of loop, which correctly pairs surrogate pairs that make up characters above U+FFFF, so emoji and supplementary CJK are counted as one character each.

UTF-8 is the variable-length encoding that maps each code point to 1–4 bytes of storage. ASCII characters (U+0000–U+007F) cost 1 byte each, matching their historical byte values. Characters in the range U+0080–U+07FF (Latin-1 supplement, IPA, Arabic, Hebrew, and others) use 2 bytes. Most of the Basic Multilingual Plane — including CJK ideographs (U+0800–U+FFFF) — uses 3 bytes. Characters beyond U+FFFF (emoji, supplementary CJK, historic scripts) use 4 bytes. The total UTF-8 byte count is the sum across all characters and determines, for example, how much space a string occupies when saved as a UTF-8 file or transmitted over HTTP.

The character distribution chart splits the text into ASCII (0–127), Latin and extended blocks (128–767, covering most European scripts and IPA), and all other Unicode ranges. This is useful for quickly checking whether an input is pure ASCII, how much overhead non-ASCII adds to storage, or whether text contains unexpected characters.

Ceisteanna coitianta

A character is a visual unit of text (a letter, digit, emoji). A code point is its numeric identity in the Unicode standard (0 to 1,114,111). A byte is a unit of computer storage (8 bits). In UTF-8 encoding, one code point maps to 1, 2, 3 or 4 bytes depending on its value — so the byte count of a string is always ≥ the character count.

Most emoji have code points above U+FFFF, which places them in Unicode's "supplementary planes". UTF-8 encodes these as 4 bytes. In JavaScript, they are also stored internally as a surrogate pair (two 16-bit code units), so string.length returns 2 for a single emoji — but iterating with for…of correctly yields one character per code point.

Many databases (MySQL, PostgreSQL), HTTP headers, and APIs measure string size in bytes, not characters. If a column is VARCHAR(255) in a utf8mb4 database, a 255-byte limit may accept fewer than 255 emoji. The UTF-8 byte count here gives you the actual storage or wire size of your text, which can differ significantly from the character count for non-ASCII scripts.

Ar a dtugtar freisin

unicode code point converter
text to unicode hex
utf-8 byte counter
character code lookup
unicode text analyzer
codepoint calculator
text unicode encoder

APA

TG we-Calculate Editorial Team. (2026). Unicode Text Calculator — Code Point & UTF-8 Byte Converter [Online calculator]. TG we-Calculate. https://we-calculate.com/ga/calculator/unicode-text-calculator

Chicago

TG we-Calculate Editorial Team. "Unicode Text Calculator — Code Point & UTF-8 Byte Converter." TG we-Calculate. 2026. https://we-calculate.com/ga/calculator/unicode-text-calculator.

IEEE

TG we-Calculate Editorial Team, "Unicode Text Calculator — Code Point & UTF-8 Byte Converter," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/ga/calculator/unicode-text-calculator

BibTeX

@misc{wecalculate_unicode_text_calculator, title = {Unicode Text Calculator — Code Point & UTF-8 Byte Converter}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/ga/calculator/unicode-text-calculator}}, year = {2026}, note = {TG we-Calculate} }

Ar chabhraigh an t-áireamhán seo leat?