ASCII / Unicode Codepoint Lookup
Look up the ASCII/Unicode codepoint for any character โ or go the other way and turn a list of codepoints back into text. Shows decimal, hex (U+XXXX), octal, binary, HTML entity, JS escape, and URL-encoded forms for every code point.
Result
How to use this calculator
- Switch the direction depending on whether you have text or codepoints.
- Paste any text โ emoji and supplementary-plane characters (codepoint > U+FFFF) are handled by code point, not by UTF-16 code unit.
- When entering codepoints, mix and match notations โ U+0041, 0x41, 65, A, \u0041 are all accepted.
- Use the per-codepoint rows to grab the exact HTML entity or JS escape you need, with no further hand-conversion.
About this calculator
Every character on the modern web โ Latin letters, CJK ideographs, emoji, math symbols โ has a Unicode code point. This tool maps in both directions: type some text and read out the U+HEX code point for each character, or paste a list of code points (in any common notation) and reconstruct the text. Itโs the lookup table you reach for when youโre writing a regex that needs to allow only certain script ranges, sanity-checking a copy-paste that arrived with garbled mojibake, or building a font fallback test page. For each code point you get the decimal, hex, octal, binary, HTML numeric entity (both forms), JavaScript \u escape, and the single-byte URL-percent representation โ the full set youโd otherwise paste-into-multiple-tools to assemble.
How it works โ the formula
codepoint(ch) = ch.codePointAt(0)
text(cps) = cps.map(String.fromCodePoint).join("")The Unicode standard maps every abstract character to a unique 21-bit integer (the code point) in the range U+0000 to U+10FFFF. JavaScript exposes the code point via String.prototype.codePointAt and the reverse via String.fromCodePoint; these correctly handle UTF-16 surrogate pairs so supplementary-plane characters (most emoji) are not split.
Worked examples
- Inputs:
- text = "A"
- Output:
- U+0041 dec 65 0x41
- Inputs:
- text = "ไธญ"
- Output:
- U+4E2D dec 20013 0x4E2D
- Inputs:
- text = "๐"
- Output:
- U+1F44B dec 128075 0x1F44B
Limitations
- Grapheme clusters (composed emoji, combining marks) are reported by their constituent code points, not as a single glyph. This matches the iterator behaviour of every modern JS engine.
- Codepoints in the surrogate range (U+D800โU+DFFF) are not scalar values and cannot be encoded; entering them returns the Unicode replacement character.
- URL %XX bytes shown are correct for code points โค U+007F only. For higher code points use proper UTF-8 percent-encoding (encodeURIComponent).
Every numeric value here is derived directly from the Unicode code-point integer โ there is no rounding or transcoding loss.
Frequently asked
What is a Unicode code point?+
Why does an emoji sometimes show up as multiple codepoints?+
What is the difference between ASCII and Unicode?+
Why are the URL-percent values only one byte each?+
Can I look up the name of a character?+
Are control characters (tabs, newlines) shown?+
Related calculators
More tools you might like
Hand-picked tools that pair well with this one โ same audience, same intent.
Convert numbers between hexadecimal, binary, octal, and decimal. Shows the bit pattern grouped by nibble + the twoโs-complement representation for negative values.
Build the canonical text payload encoded in a QR code โ plain text, URL, WiFi-network credentials, or vCard contact. Includes a ready-to-render image URL for visual scanning.
Encode a string for use inside a URL (or decode percent-escapes back to text). Shows component vs full-URI variants and base64url for token use.
Validate a barcode number, compute the check digit, and produce a ready-to-render image URL. Supports EAN-13, EAN-8, UPC-A, Code 128, and ISBN.
Count words, characters, paragraphs, and sentences in any pasted text, plus reading time at 250 / 200 / 150 WPM.
Walk a PDF's /Annot Link entries and list every hyperlink found โ page, target URL, position. Info-only export for review or migration.