Text to Decimal Converter

Text to decimal converter — get the decimal byte value (0–255) of every character, free online.

About

About the Text to Decimal Converter

Turn any text into the plain decimal numbers a computer stores it as. Each byte becomes a number from 0 to 255 — the most human-readable way to see character codes, and the form many programming exercises, byte arrays and spreadsheet formulas expect.

Capital A is 65 and Z is 90, lowercase a is 97 and z is 122, the digit 0 is 48 and a space is 32 — every lowercase letter is exactly 32 more than its capital. These are the values you'd write in a byte array like new Uint8Array([72, 105]) and what charCodeAt() or ord() return for ASCII text. Because the output is UTF-8 bytes, every number stays between 0 and 255: é is code point 233, but it's stored as the two bytes 195 169. If you need one code per character instead, use the ASCII converter.

Choose what to view about this tool

Guide

Using the Text to Decimal Converter

  1. 1

    Step 1

    Type or paste your text into the Text box — Decimal is already selected as the byte format.

  2. 2

    Step 2

    Click "Convert to decimal" to encode it, entirely in your browser.

  3. 3

    Step 3

    Each byte appears as a number from 0 to 255, separated by a space.

  4. 4

    Step 4

    Copy the numbers, or paste numbers into the box and click "Decimal to text" to decode them.

  • Converts any text into decimal byte values from 0 to 255 in one click
  • Separates each number with a single space, ready to paste into a list or array
  • Encodes as UTF-8, so non-English characters and emoji give their real byte values
  • Matches the familiar ASCII codes for English letters, digits and punctuation
  • Includes invisible characters such as spaces (32), tabs (9) and new lines (10)
  • Decodes decimal numbers back into text in the same box
  • Runs entirely in your browser — free, private and unlimited

Programmers

Programmers use it to get the byte values of a string for a byte array, a buffer or a test case.

Students

Students use it to check character-code exercises in computing and programming classes.

Embedded and hardware makers

Makers programming microcontrollers use it to turn a display message or serial command into the bytes to send.

Puzzle makers

Puzzle makers use it to turn a message into a row of numbers for a number-cipher game.

More text and byte conversions

Examples

Text to Decimal Converter examples

4 worked examples

01

A short word

"Hey" converts to 72 101 121 — H, e and y.

02

Capital letters

"ABC" converts to 65 66 67 — capital letters run in order from 65 for A to 90 for Z.

03

A line break

"Hi" followed by a new line converts to 72 105 10 — the line break is the byte 10.

04

An emoji

"😀" converts to 240 159 152 128 — four bytes, because emoji sit far outside the ASCII range.

FAQ

Frequently asked questions

Quick answers to common questions about the Text to Decimal Converter.

How do I convert text to decimal?

Type your text above and click "Convert to decimal". Each UTF-8 byte of the text is shown as a decimal number from 0 to 255, all in your browser.

What is "Hello" in decimal?

72 101 108 108 111 — one number each for H, e, l, l and o.

Why are the numbers never bigger than 255?

Because each number is one byte, and a byte holds 0–255. Characters that need more room are split across several bytes instead of getting a bigger number.

Why does é give two numbers?

In UTF-8, é is stored as two bytes: 195 and 169. Plain ASCII characters always take one byte, but accented letters, symbols and emoji take two to four.

Is this the same as ASCII codes?

For English letters, digits and common punctuation, yes — UTF-8 uses the same values as ASCII for the first 128 characters. They only differ for characters outside that range.

Are the numbers zero-padded?

No. Numbers are written plainly — 9 for a tab, 32 for a space, 101 for e — and separated by single spaces.

Is text to decimal the same as hex to decimal or binary to decimal?

No. Those convert a single number between bases. Text to decimal encodes characters into their byte values.

Can I turn the numbers back into text?

Yes. Paste them into the box and click "Decimal to text", or use the dedicated decimal to text page.

Is it free and private?

Yes. There's no sign-up or limit, and the conversion runs entirely on your device — your text is never uploaded.

Still have a question? Contact us

Report a problem

Text to Decimal Converter

What went wrong?
    or paste a screenshot