ASCII / Unicode Code Converter
Convert text to space-separated Unicode code points and back.
- Runs locally in your browser
- No upload required
Try it
Supported formats
Privacy
Runs entirely in your browser. Your input is never uploaded, stored, or sent to a third party.
Converted 3 character(s) of text to 3 Unicode code point(s).
How it works
- Read the input as a sequence of Unicode characters.
- Replaced each character with its decimal Unicode code point.
- Joined the code points with single spaces.
- This tool works with Unicode code points, not just the 7-bit ASCII range.
- A code point is a number, not an encoding: it provides no confidentiality.
Methodology
- Encode by iterating the string's Unicode code points and joining their decimal values with spaces.
- Decode by parsing each token as an integer, validating it is a real code point, and rebuilding the string with String.fromCodePoint.
- Reject surrogate and out-of-range values rather than producing a broken string.
Usage
- Choose encode to turn text into code points, or decode to turn code points into text.
- Paste the text or the space-separated code points.
- Read the result; use Copy result to reuse it.
Examples
These are examples, not current values: they use fixed inputs, while the interactive tool computes live results in your browser.
Encode ASCII
{
"mode": "encode",
"value": "ABC"
}Encode Unicode
{
"mode": "encode",
"value": "café 🌍"
}Decode code points
{
"mode": "decode",
"value": "65 66 67"
}Decode a non-ASCII code point
{
"mode": "decode",
"value": "233"
}Limitations
Code points vs encodings
ASCII and Unicode assign a number to each character; UTF-8, UTF-16 and UTF-32 decide how that number is stored as bytes. This tool shows the numbers. Use the hex, binary or octal tools when you need the UTF-8 bytes instead.
Frequently asked questions
- Is this the same as an ASCII table?
- For characters in the 0-127 range, yes: the number is the ASCII code. Above that it is the Unicode code point, which is why é appears as 233 rather than an error.
- Why does an emoji become a number above 65535?
- Characters outside the Basic Multilingual Plane have code points above 65535. The converter uses String.fromCodePoint so they round-trip exactly.
Sources
- The Unicode Standard, Version 15.0.0 — Unicode Consortium
- Unicode code point — Glossary of Unicode Terms — Unicode Consortium
Send feedback
Tell us if this tool helped, report a problem, or suggest a tool. Only the message you type is sent — never the input you used in the tool.
Was this tool useful?
Prefer to write to us directly? See the contact page.