ASCII Converter
Type text to see its code points.
This ASCII converter turns text into decimal code point numbers and back again. Encoding gives you the code point of every character, space separated, and decoding parses those numbers back into readable text. It uses Unicode aware iteration, so emoji and characters beyond the basic plane stay intact. Everything runs client-side, so your text never leaves your browser.
How to use
- Pick a direction: text to code points (encode) or code points to text (decode).
- Type or paste your input into the left box.
- Read the converted result live in the right box.
- Use Swap to flip the result back into the input and reverse the direction.
- Press Copy to put the result on your clipboard, or Reset to start over.
Examples
- Encode "Hi!" to get 72 105 33.
- Decode "72 101 108 108 111" to get Hello.
- Encode the emoji "π" to get its single code point 128512.
FAQs
- Is this ASCII or Unicode?
- Both. For characters in the ASCII range (0 to 127) the code point equals the classic ASCII value. For anything beyond that, you get the full Unicode code point, so accented letters, symbols, and emoji all work.
- Why is an emoji a single number instead of two?
- The tool iterates with Array.from and reads codePointAt, which treats each character as one code point. Emoji are stored internally as surrogate pairs, but you see and decode them as one number.
- What format are the numbers?
- Decimal. Encoding outputs base 10 numbers separated by single spaces, and decoding expects the same. The letter A is 65, not the hex 0x41.
- What happens if I enter something invalid when decoding?
- If a token is not a whole number, or a value falls outside the valid Unicode range (0 to 1114111), the tool shows a clear error and leaves the output empty instead of guessing.
- Does my text get uploaded anywhere?
- No. All conversion happens locally in your browser. Nothing is sent to a server, so it is safe for private or sensitive text.
- How do I convert back?
- Switch the direction to code points to text, or use the Swap button to flip the current output into the input and reverse the direction in one click.
Related tools
- String EscaperEscape and unescape strings for JSON and JavaScript. Convert newlines, tabs, quotes, and backslashes to and from their escaped forms in your browser.
- XML FormatterPretty print XML with clean indentation per nesting level. Pick 2 spaces, 4 spaces, or tabs. Validates broken markup, runs in your browser.
- Diff CheckerCompare two blocks of text and see what changed, line by line or word by word. Side by side, inline, or unified diff views. Free and private in your browser.
- CSS MinifierMinify CSS online. Strip comments and whitespace, collapse spaces, and shrink stylesheets while keeping strings and url() values intact.
- JSON FormatterFormat, validate, and beautify JSON in your browser. Paste messy JSON, get clean indented output, then copy it back. Free, no signup.
- Base64 EncoderEncode text to Base64 or decode Base64 back to text in your browser. Full UTF-8 support and clear errors on invalid input.