Menu

Tradutor de texto para binário

Converta texto em binário e binário de volta em texto, byte a byte.

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 a binary translator?

A binary translator converts human-readable text into binary code - the 1s and 0s a computer actually stores - and converts that binary back into text. Every character you type is stored as a number, and that number is written in base-2 as a sequence of bits. This tool shows you exactly what those bits are, and lets you go the other way too.

Under the hood, each character is first encoded to bytes using UTF-8, then each byte is written as 8 binary digits. The capital letter C is byte 67, which is 01000011 in binary. A multi-byte character like é or an emoji becomes several bytes - and this converter keeps them intact so the round-trip is lossless.

It's a great way to *see* how text is really stored, to decode a binary string someone sent you, or to work through a computer-science exercise. Everything runs locally in your browser - your text is never uploaded.

What you'll learn while translating binary

  • Every character is stored as a number; that number written in base-2 is its binary code.
  • One byte is 8 bits, and each ASCII character fits in a single byte (values 0–127).
  • The letter A is 65 (01000001), a is 97 (01100001) - lowercase is 32 higher than uppercase.

How to convert text to binary step by step

  1. Pick a direction

    Choose Text → Binary to encode, or Binary → Text to decode an existing binary string.

  2. Type or paste your input

    Enter any text to encode, or paste binary digits to decode. Spaces and line breaks between bytes are ignored on decode.

  3. Choose a separator (encoding)

    Separate each byte with a space, a new line, or nothing at all - handy when a target format expects an unbroken bit stream.

  4. Copy or swap

    Copy the result with one click, or hit the swap button to feed the output back in and reverse the conversion.

Text to binary quick reference (ASCII)

Common characters with their decimal code point and 8-bit binary. Full details in the ASCII table and the UTF-8 encoding spec for characters beyond 127.

CharacterDecimalBinary
(space)3200100000
04800110000
95700111001
A6501000001
C6701000011
Z9001011010
a9701100001
z12201111010
!3300100001
?6300111111

Examples to try

Encode a single letter

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

A is code point 65, which is 01000001 in binary - exactly 8 bits.

Encode a word

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

Hi becomes 01001000 01101001 - one 8-bit byte per character.

Decode binary back to text

Take a value from your own work and use this tool to inspect or prepare it.

Paste this in Binary → Text mode to get Coddy back.

Common mistakes

  • Binary length that isn't a multiple of 8 - each character needs exactly 8 bits, so a stray or missing bit breaks decoding.
  • Assuming one character always equals one byte - accented letters, emoji, and non-Latin scripts use multiple UTF-8 bytes.
  • Confusing a character's binary code with its decimal code point - 65 (decimal) and 01000001 (binary) are the same value in different bases.

Binary Translator FAQ

How do I convert text to binary?
Type your text in Text → Binary mode. Each character is encoded to a UTF-8 byte and shown as 8 binary digits, separated by your chosen separator.
How do I convert binary to text?
Switch to Binary → Text mode and paste your binary. Group the bits in bytes of 8 (spaces and line breaks are ignored); the tool decodes them as UTF-8 back into readable text.
Does it support emoji and non-English characters?
Yes. Text is encoded with UTF-8, so accented letters, CJK characters, and emoji all round-trip correctly - they simply use more than one byte.
Why do I get a 'not a multiple of 8' error?
Every character is 8 bits, so the total number of binary digits must be divisible by 8. Check for a missing or extra bit in your input.
Is my text uploaded anywhere?
No. The entire conversion runs locally in your browser using the built-in TextEncoder/TextDecoder APIs - nothing is sent to a server.

Saiba mais

Outras ferramentas para desenvolvedores

Coddy programming languages illustration

Aprenda a programar com o Coddy

COMEÇAR