Skip to content
NMSnabbit.

String to Int Converter

Convert a string to integer Unicode code points, space-separated.

Encoders & Decoders Runs in your browser

How do you convert a string to integers?

Every character has a Unicode code point, an integer assigned by the standard: A is 65, é is 233, the fire emoji is 128293. This converter lists those integers in base 10 for each character you enter, space-separated. Unlike a byte view, one character always maps to exactly one number, so the output count matches the character count even for four-byte emoji.

How to use the String to Int

  1. 1 Enter or paste the string you want to inspect.
  2. 2 Each character is replaced by its base-10 code point in the output.
  3. 3 Confirm the count of numbers equals the count of characters.
  4. 4 Copy the integer list for your algorithm.

What you can use it for

  • Getting numeric character codes for an algorithm.
  • Building integer arrays from text in code.
  • Teaching how characters map to integers.
  • Generating numeric keys or hashes from a string.

Frequently asked questions

Is each integer an ASCII code or a Unicode value?
A Unicode code point in decimal. The first 128 code points coincide with ASCII, which is why A shows as 65 either way; beyond U+007F only the Unicode reading applies.
Does one character always give one integer?
Yes. Code points sit above the byte level, so a snowman or a CJK ideograph is one number here even though UTF-8 stores it as three bytes.
Can I convert the integers back?
Paste them into the Code to ASCII converter, which maps each number back through String.fromCodePoint to rebuild the text.

Related tools

More Encoders & Decoders

More tools like this:

All Encoders & Decoders