EditSafely

Convert a String to Integers

Turn each character into its Unicode code-point value.

Runs on your device, nothing uploaded

Separator
Base
Try:

0 chars · 0 lines

Output

Turn each character into its Unicode code-point value.

Type or paste above to see the result here.

Example: Code points of AB

What you paste never leaves this tab

Convert a String to Integers is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, the text you paste is sent to a server that can log it, cache it or keep it. Here it is read and transformed inside this tab and nowhere else.

  • No upload
  • No length limit
  • Works offline once loaded
  • Nothing stored or logged

How to use Convert a String to Integers

  1. 1. Paste the string to convert. Enter the text whose characters you want turned into numbers into the input pane, from a single letter to a full sentence.
  2. 2. Set the Separator and Base. Tap a Separator chip (Space, Comma, New line and more), and pick Decimal, Hexadecimal, U+0041 or \u escape for how each code point is written. Turn on Table per character under More options to see each character with its decimal, hex and U+ value side by side. A note reminds you these are code points, not UTF-8 bytes.
  3. 3. Copy the code point list. Copy the resulting sequence of numbers and use it wherever you need each character's underlying Unicode value, such as debugging encoding issues.

When to use Convert a String to Integers

Convert a String to Integers turns each character of a string into its Unicode code-point value, in decimal or hexadecimal, separated by a character you choose. It is the direct way to see the numeric identity behind any text.

  • Debugging a mysterious invisible character. A string looks correct visually but is causing a parsing error; converting it to code points reveals a stray zero-width space or non-breaking space hiding among the letters.
  • Explaining Unicode code points in a lesson. A tutorial on character encoding wants to show students that 'A' is really the number 65, so this generates the code point list directly from example text.
  • Building a lookup table by hand. You are writing a small encoder and want the decimal or hex code points of a set of characters as a quick reference while writing the mapping logic.
  • Comparing two similar-looking strings. Two strings look identical on screen but behave differently in code; converting both to hexadecimal code points exposes which characters actually differ.

Examples

Code points of AB

Input

AB

Output

65 66

U+ code points

Input

AB

Output

U+0041 U+0042

About the Convert a String to Integers tool

Convert a String to Integers is a free online tool that works entirely inside your web browser. Turn each character into its Unicode code-point value. Because the processing happens on your own device, nothing you enter is uploaded, logged or stored anywhere.

This page is one of 159 String utilities on EditSafely. Each one does a single job well, and all of them follow the same rule: your input stays on your machine.

You can shape the output with 3 settings, including Separator, Base and Table per character, and the result refreshes the moment you change one. 2 worked examples further down the page show exactly what the tool produces for real inputs.

Because nothing leaves your device, the tool is suitable for sensitive content such as internal documents, credentials or customer data. It also responds instantly, since every step is handled on your own machine rather than by a remote API.

Frequently asked questions

Does Convert a String to Integers cost anything?

Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.

Is it safe to paste sensitive or confidential data?

No data leaves your device. The whole tool is JavaScript that runs inside your browser tab, so there is no upload, no server-side processing and no log of what you did. If you disconnect from the internet after the page loads, it keeps working.

How much text can I process at once?

There is no fixed limit; your device's memory is the ceiling. Up to 10 MB the result updates as you type, after a short pause that grows with the size. Above 10 MB a Run button appears so typing stays smooth, and files open up to 50 MB. A very long result shows its first 2,000 lines on screen, while Copy and Download always include all of it.

Do I need to sign up or install anything?

Nothing to install and no account needed. Open the page in any up-to-date browser, including on a phone or tablet, and the tool is ready.

How do I use the result?

The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.