Skip to content

ASCII Code Converter

Convert text to character codes and back.

Converted
Converted text to character codes.

ASCII Code Converter turns text into a list of decimal character codes, or decodes space- or comma-separated codes back into readable text, entirely inside your browser. It supports the full Unicode range, not just the original 128 ASCII characters.

How it works

Text to codes iterates the input by Unicode code point (handling emoji and multi-byte characters correctly) and lists each character's decimal code point. Codes to text splits the input on spaces or commas, validates each number is a legal Unicode code point, and rebuilds the string with String.fromCodePoint.

Benefits

  • Supports the full Unicode range, not just 7-bit ASCII
  • Accepts flexible space- or comma-separated code input
  • Preserves spacing and punctuation exactly
  • Runs fully client-side with instant results

Use cases

  • Decode ASCII code homework problems or trivia
  • Debug character encoding issues by inspecting exact code points
  • Convert text to codes for teaching programming fundamentals
  • Check whether a mystery string of numbers spells out a message

Best practices

  • Use spaces or commas consistently when entering codes for clarity
  • Remember codes above 127 are Unicode, not classic 7-bit ASCII
  • Copy the full code list rather than retyping it to avoid transcription errors
  • Double check for reserved surrogate values if codes come from another source

Common mistakes

  • Assuming all readable text stays within the 0–127 ASCII range
  • Entering hexadecimal codes when the tool expects decimal numbers
  • Forgetting that a space character is code 32, not code 0
  • Splitting multi-digit codes incorrectly with inconsistent separators

Privacy

All conversion happens locally in your browser using JavaScript. ToolHub does not receive the text or codes you enter unless you separately opt in to on-device history.

Frequently asked questions

What is the difference between ASCII and Unicode code points here?
Standard keyboard characters map to ASCII codes 0–127. This tool actually reads full Unicode code points, so characters like emoji or accented letters (outside the ASCII range) still convert correctly to their higher numeric codes.
What format should the codes be in for Codes → Text?
Decimal numbers separated by spaces or commas, for example "72 101 108 108 111" or "72,101,108,108,111". Mixed spacing and commas both work.
Does this handle emoji and other multi-byte characters?
Yes. The converter iterates by Unicode code point (not raw UTF-16 code unit), so emoji and other characters outside the Basic Latin range convert to a single correct code each.
What happens if I enter an invalid code number?
Codes outside the valid Unicode range (0 to 1,114,111) or reserved surrogate values are rejected with a specific error identifying the invalid code.
Does spacing in my text matter?
Yes—each space character converts to code 32, so spacing is preserved exactly when you convert text to codes and back again.
Does this tool send my text anywhere?
No. All conversion happens locally in your browser using JavaScript, with no network requests involved.

Version 1.0.0 · Updated 2026-07-27 · 1 minute