Menu

Conversor ASCII

Converta texto em códigos ASCII e códigos ASCII de volta em texto.

Por Nethanel Bar, Co-founder & CEO

Última atualização

Ready to actually learn to code?

Coddy teaches you by writing real code in your browser - interactive lessons, instant feedback, and AI help when you get stuck.

What is an ASCII converter?

An ASCII converter maps characters to the numeric codes computers use to store them, and back again. ASCII (American Standard Code for Information Interchange) assigns a number 0–127 to each basic English character - A is 65, a is 97, space is 32. This tool shows you those codes and decodes them, in decimal, hexadecimal, or binary.

Modern text goes beyond the original 128 ASCII characters, so this converter uses Unicode code points under the hood. That means accented letters, symbols, and emoji all get correct codes too - é is 233, and an emoji is a code point above 127. Switching the base lets you read the same code as decimal (65), hex (41), or binary (01000001).

It's handy for debugging encoding issues, working through a computer-science exercise, or decoding a string of numbers someone sent you. Everything runs locally in your browser.

What you'll learn while converting ASCII

  • Every character maps to a number - its ASCII value (0–127) or, more generally, its Unicode code point.
  • A=65 and a=97: uppercase and lowercase letters are 32 apart.
  • Digits 09 are codes 48–57, and space is 32.

How to convert text to ASCII step by step

  1. Pick a direction

    Choose Text → ASCII to get the codes, or ASCII → Text to decode a list of codes.

  2. Choose a base

    Show the codes in decimal, hexadecimal, or binary - the decoder reads whichever base you pick.

  3. Type or paste your input

    Enter text to encode, or paste codes separated by spaces or commas to decode.

  4. Copy or swap

    Copy the result with one click, or swap to reverse the conversion.

ASCII code quick reference

Common characters with their decimal, hex, and binary codes. See the full ASCII table for all 128 characters.

CharacterDecimalHexBinary
(space)322000100000
0483000110000
9573900111001
A654101000001
Z905A01011010
a976101100001
z1227A01111010
!332100100001
@644001000000
~1267E01111110

Examples to try

Encode a word

Paste a small example into the tool and change one part at a time.

In decimal, Hi becomes 72 105 - the code for H then i.

Decode decimal codes

Copy the original value, run the tool, then compare the result.

Paste this in ASCII → Text mode (decimal) to get Coddy.

Common mistakes

  • Decoding with the wrong base - 41 is A in hex but ) in decimal, so match the base to how the codes were written.
  • Confusing a digit character with its value - the character 5 has ASCII code 53, not 5.
  • Assuming ASCII covers everything - characters beyond 127 (accents, emoji) are Unicode code points, not classic ASCII.

ASCII Converter FAQ

How do I convert text to ASCII?
Type your text in Text → ASCII mode. Each character is shown as its code in the base you choose - decimal, hex, or binary.
How do I convert ASCII codes to text?
Switch to ASCII → Text mode, pick the base your codes are in, and paste them separated by spaces or commas.
What's the ASCII code for A?
The capital letter A is 65 in decimal, 41 in hexadecimal, and 01000001 in binary. Lowercase a is 97.
Does it support emoji and accented characters?
Yes. It uses Unicode code points, so characters beyond the original 128 ASCII values - accents, symbols, and emoji - convert correctly.

Saiba mais

Outras ferramentas para desenvolvedores

Coddy programming languages illustration

Aprenda a programar com o Coddy

COMEÇAR