ASCII / Unicode Code Converter

Convert text to space-separated Unicode code points and back.

  • Runs locally in your browser
  • No upload required

Try it

Processed entirely in your browser; nothing is uploaded.

Result
65 66 67

Supported formats

Input
text
Output
text

Privacy

Runs entirely in your browser. Your input is never uploaded, stored, or sent to a third party.

Processing
In your browser
Privacy level
Browser only

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

  1. Encode by iterating the string's Unicode code points and joining their decimal values with spaces.
  2. Decode by parsing each token as an integer, validating it is a real code point, and rebuilding the string with String.fromCodePoint.
  3. Reject surrogate and out-of-range values rather than producing a broken string.

Usage

  1. Choose encode to turn text into code points, or decode to turn code points into text.
  2. Paste the text or the space-separated code points.
  3. 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

jsonSelect to copy
{
  "mode": "encode",
  "value": "ABC"
}

Encode Unicode

jsonSelect to copy
{
  "mode": "encode",
  "value": "café 🌍"
}

Decode code points

jsonSelect to copy
{
  "mode": "decode",
  "value": "65 66 67"
}

Decode a non-ASCII code point

jsonSelect to copy
{
  "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

  1. The Unicode Standard, Version 15.0.0 — Unicode Consortium
  2. Unicode code point — Glossary of Unicode Terms — Unicode Consortium