Skip to content

Text to Decimal

Convert text into decimal character codes.

Quick Tool Overview

Text to Decimal gives the character codes an ASCII or Unicode table lists — A is 65, space is 32 — and can also produce HTML numeric entities, which is how you write a character in markup when the character itself would not survive the encoding.

What it does
Converts characters into decimal codes
You give it
Any text
You get back
Decimal codes or HTML numeric entities
Best for
Reference lookups, HTML entities and teaching
Text Tools Free, unlimited use No sign-up Runs in your browser

About the Text to Decimal

Decimal is how an ASCII table is printed and how most people first meet character codes: A is 65, a is 97, space is 32. This converter gives you those numbers for any text, which is the version that is easiest to check against a reference table.

Beyond plain codes, there is an HTML numeric entity format — A and so on — which is how you write a character in HTML when the character itself would be awkward or would not survive the encoding. That is genuinely useful for email templates, for characters that get mangled in transit, and for obfuscating an email address in page source against the simplest scrapers.

Key features of the Text to Decimal

HTML entity output

Produces A style entities ready to paste into markup or an email template.

Matches the ASCII table

Code point mode gives exactly the numbers a printed reference table lists.

Byte mode too

For when you need the UTF-8 storage values rather than the character numbers.

Column padding

Zero-pad to a fixed width so the codes align in a spreadsheet.

Full Unicode range

Emoji and CJK characters give their real six-digit code points rather than an error.

How to use the Text to Decimal

  1. 1

    Type or paste your text

    A character, a word or a whole document.

  2. 2

    Choose bytes or code points

    Code points give the number an ASCII or Unicode table lists; bytes give the UTF-8 storage values.

  3. 3

    Pick the output format

    Plain numbers with a separator, or HTML numeric entities ready to paste into markup.

  4. 4

    Copy the codes

    Optionally padded to a fixed width so the numbers line up in columns.

Frequently asked questions

65 for capital A and 97 for lowercase a. The difference of exactly 32 between every upper and lower case pair is not a coincidence — it is a single bit, which is what makes case conversion cheap.

Reviews of the Text to Decimal

What people who use the Text to Decimal think of it. Reviews come from visitors and are posted as written.

No ratings yet

Yours would be the first.

  • 5 0 reviews rated 5 stars
  • 4 0 reviews rated 4 stars
  • 3 0 reviews rated 3 stars
  • 2 0 reviews rated 2 stars
  • 1 0 reviews rated 1 star

Write a review

Used this tool? Your rating helps the next person decide.

Your rating

Plain text only — links, email addresses and HTML are not accepted. Your name and review are shown publicly; nothing else is collected. See the privacy policy.

0 reviews

Newest first

No reviews yet

Be the first to rate the Text to Decimal. It takes half a minute and no account.

Write the first review

More text tools