Text
Text to ASCII Codes
Display the numeric Unicode codepoint for every character in your input.
Written by Jay Sudha · Published · Last updated
Press ⌘ Enter to run
4 words · 1 line
Common uses
- Debug hidden whitespace characters
- Inspect raw input from forms
Limitations
- Shows numeric codes only, no encoding conversion
When character codes are the thing you actually need
Text to ASCII Codes lists the numeric code for every character in whatever you paste in. It is built for the moments when text looks right but behaves wrong: a form field that fails validation, a CSV column that won't parse, a password that a system rejects for no visible reason. Seeing each character paired with its number turns an invisible problem into something you can point at.
Concrete fits include web and app debugging, where you can confirm whether a space is a normal space (32) or a non-breaking space (160), or whether line endings carry stray characters. It helps data-prep work by exposing smart quotes, em dashes, and zero-width characters that slip in from word processors or pasted spreadsheet cells. Student and reference use is just as valid: looking up the code behind a letter, digit, or symbol while learning how text is represented.
It is not a writing or formatting tool, and it is not meant for bulk document processing. The natural input is a snippet you are inspecting, not a whole chapter or dataset.
Paste, press Run, one line per character
The flow is direct. Paste your text into the input box, press Run, and the result appears in the output box as one line per character: the character itself, a space, then its code. Invisible characters are named instead of printed, so a tab shows as [TAB] 9, a line break as [LF (line feed)] 10 and a non-breaking space as [NBSP (non-breaking space)] 160. From there you can copy the whole list to the clipboard or download it as a plain text file. Reset brings back the sample text.
Everything happens locally in your browser. The text you paste is processed on your own machine, nothing is uploaded to a server, and nothing persists once you close the tab. There are no accounts, options panels, or settings to configure for this tool, it does one job.
Worth knowing about what it shows: the numbers are decimal Unicode code points, not hexadecimal, and not a converted or re-encoded version of your text. This tool reports codes; it does not transform your input into a different encoding, escape format, or output charset.
Emoji show their real code point
Characters beyond the basic range, such as most emoji, are read as whole code points, so 😀 appears once, as 128512 (U+1F600), not as two surrogate halves. Emoji built from several code points are a different matter: a flag, a skin-tone emoji or a family emoji is a sequence, and each code point in it gets its own line.
A common mistake is assuming a number above 127 is still ASCII. ASCII proper only covers 0 to 127; anything higher is Unicode territory, even though the tool name leads with ASCII. Reading the list as if every value were a plain ASCII byte will give you wrong conclusions about how the text is stored.
Also remember the output is a snapshot of exactly what you pasted. Trailing spaces, a hidden newline at the end, or characters your clipboard silently normalized will all show up, which is the point, but it means the result reflects the paste, not necessarily the original source.
Compare the line count against your input
Scan the line count against your input length first. If you pasted ten visible characters but see eleven or twelve lines, you have found hidden whitespace, a line break, or an emoji sequence, which is usually the discovery you came for. Confirm that suspect characters carry the codes you expect, for instance 32 for a normal space and 9 for a tab, before acting on them.
When emoji or non-Latin text is involved, look the larger numbers up in a Unicode reference; they are code points, so the lookup is direct. If your goal was to find one specific stray character, locate its line directly instead of trusting a quick glance over the list.
For anything official, financial, or legal, where an exact character matters, such as a reference number, account string, or signed value, verify the result by hand against the authoritative source. Use this tool as a diagnostic aid, not as the final record of what a piece of text contains.
Frequently asked questions
Each character on its own line followed by its Unicode code point in decimal. Invisible characters such as tabs, line breaks and non-breaking spaces are shown by name, so you can see them.
Plain ASCII text maps to the familiar 0–127 codes, but it also reports codes for other characters: it's a quick lookup, not an encoding conversion.
Debugging hidden characters from form input or exports, spotting a tab, a non-breaking space, or an unexpected control character by its code.
No. It runs entirely in your browser.
Related text tools
Tool last reviewed: September 27, 2026 · Report a problem