Skip to main content

Text

Text to ASCII Codes

Display the numeric Unicode codepoint for every character in your input.

Runs in your browserPrivate by design
TextASCII codes

Press ⌘ Enter to run

21 words · 3 lines

How this tool handles files

Processing
In your browser, on-device
Storage
Nothing stored
Output
A file you download
Your responsibility
Review before official use
  • Runs in your browser. Your file is processed on your own device and, on this site, is not uploaded to our servers.
  • Nothing is stored. Your file and its output are gone the moment you close or reload the page.
  • Review sensitive files (bank, ID, medical) and check the output before sharing it.

Every tool on FormatOS runs in your browser. Read our Privacy Policy and File Handling Policy.

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, run, then copy or download

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 numeric code. From there you can copy the whole list to the clipboard or download it as a plain text file. A Reset button clears both boxes so you can start again.

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/UTF-16 code unit values, 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.

Where it can mislead you

The most important caveat concerns characters beyond the basic range, such as most emoji and some rarer scripts. The tool reads the first UTF-16 unit of each character, so a single emoji can appear as two lines with large surrogate values (for example numbers in the 55000 range) rather than one true codepoint. If you are inspecting emoji or astral-plane characters, treat those numbers as raw code units, not the final codepoint you may be expecting.

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.

Checking the result before you rely on it

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 a multi-unit character, 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, cross-check any unusually large numbers against a Unicode reference rather than reading them at face value, since they may be surrogate units rather than codepoints. 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 numeric code, so you can read off the value for every symbol in your input.

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: June 30, 2026 · Report a problem