Since 2010 · Powering 2M+ tool runs every month
Since 2010
Add to Chrome

My Toolbox

Automatic Mode

No saved tools yet.

Go Premium
Related tools
Base64 DecoderURL DecoderBase64 EncoderMorse Code DecoderMorse Code GeneratorROT13 Encoder/Decoder
Home Page > Miscellaneous > Encoders And Decoders

Text to Binary/Hex/ASCII Converter

MiniWebtool’s Text to Binary/Hex/ASCII Converter encodes text or decodes numeric codes. Compare formats and per-character values, with UTF-8 support plus separator, padding, and prefix options.

Need help using this tool? Ask AI

For Gemini, paste the copied question into the chat. You can also copy it below.

View the question

Free to useNo sign-up requiredInstant Results
Text to Binary/Hex/ASCII ConverterTry it now — free ▼
Each letter is one byte: H = 72 = 01001000 = 48 in hex, i = 105 = 01101001 = 69

Type text to get its binary, hex, ASCII (decimal) and octal codes, or switch to Decode to turn codes back into text, with UTF-8 support and separator, padding and prefix options.

⚡ Quick Examples
Your Text 0 chars
👁 Live Multi-Format Preview
Binary
Hex
Decimal
Octal

Embed Text to Binary/Hex/ASCII Converter Widget

About Text to Binary/Hex/ASCII Converter

The Text to Binary, Hex, ASCII Converter is a free online encoder and decoder that turns plain text into machine-friendly numeric codes — and back again. Whether you are debugging low-level data, learning how computers represent characters, building a programming assignment, or just curious about what your name looks like in 1s and 0s, this tool gives you binary, hexadecimal, decimal (ASCII), and octal output side-by-side, with a live preview that updates as you type and a per-character breakdown that shows the exact UTF-8 bytes behind every glyph.

At a Glance

Text to Binary/Hex/ASCII Converter encodes text as binary, hexadecimal, ASCII decimal or octal codes and decodes those codes back to readable text. It uses UTF-8 and shows a per-character breakdown.

Text to Binary/Hex/ASCII Converter: features at a glance
FeatureWhat you getGood for
Four number systemsEncode text to binary (8-bit), hexadecimal, ASCII decimal or octal, and decode any of the four back to text.Computer science homework on number-system conversion
Live previewWhile you type in encode mode, all four representations update at once, before you click Convert.Comparing how the same text looks in different bases
UTF-8 and emojiASCII characters take 1 byte. Accented letters, CJK characters and emoji are encoded as 2 to 4 bytes each.Checking what bytes a string actually produces
Format optionsSeparate codes with a space, comma, dash or new line, or none. Add zero padding, 0b/0x/0o prefixes and uppercase hex.Pasting output straight into code
Forgiving decoderAccepts spaces, commas, dashes, semicolons, slashes, pipes and new lines between codes, strips prefixes, and splits unseparated input into fixed-width groups.Decoding codes copied from mixed sources
Character breakdownA table shows how each character maps to its bytes. Copy the result or download it as a text file.Teaching how text becomes numbers

What This Tool Does

This converter operates in two directions. In Encode mode, it takes any text you provide and translates each character into one or more bytes (using the universal UTF-8 standard), then displays those bytes in your chosen number system: binary (base 2), hexadecimal (base 16), ASCII decimal (base 10), or octal (base 8). In Decode mode, it reverses the process: paste a string of binary, hex, decimal, or octal codes and it reconstructs the original text.

How Text Becomes Numbers — A Quick Primer

Every character on a computer is ultimately stored as a number. The original ASCII standard, defined in 1963, mapped 128 characters (letters, digits, punctuation, control codes) to the numbers 0 through 127. Modern systems use Unicode, which assigns a unique codepoint to every character in every writing system on Earth, plus emoji, symbols, and more — over 149,000 codepoints in total. To store these efficiently, computers use an encoding called UTF-8: ASCII characters still take just one byte (so they look identical to old ASCII), but accented letters, CJK characters, and emoji use 2, 3, or 4 bytes each.

Example: encoding "Hi"
The letter H has Unicode codepoint U+0048, which is the number 72. As a single UTF-8 byte that is 01001000 in binary, 48 in hex, 072 in decimal, or 110 in octal.
The letter i is U+0069 (105), which becomes 01101001, 69, 105, or 151.
So the full encoding of "Hi" is: 01001000 01101001 (binary).

Common Number Systems Compared

Text to Binary/Hex/ASCII Converter: Common Number Systems Compared
CharacterDecimalBinary (8-bit)HexOctal
A650100000141101
B660100001042102
Z90010110105A132
a970110000161141
z122011110107A172
0480011000030060
9570011100139071
(space)320010000020040
!330010000121041
?63001111113F077

Step-by-Step: How to Use the Converter

  1. Choose direction: Use the toggle at the top to pick Encode (text to codes) or Decode (codes to text).
  2. Pick a format: Select Binary, Hexadecimal, ASCII (Decimal), or Octal as the target or source format.
  3. Type or paste your input: Enter your text or codes in the input box. As you type in encode mode, the live preview shows all four formats updating in real time.
  4. Adjust formatting options: Choose your preferred separator (space, comma, dash, newline, or none), enable zero-padding for consistent width, add language prefixes (0b, 0x, 0o), or switch hex to uppercase.
  5. Click Convert: The full encoded or decoded result appears below, along with an "All Formats at a Glance" panel and a per-character breakdown showing exactly how each character maps to its bytes.
  6. Copy or download: One click copies the output to your clipboard, or downloads it as a text file. You can also press "Use as Input" to round-trip the result back through the converter.

Smart Decoder — Forgiving Input Parsing

The decoder is designed to accept codes from many sources without requiring you to clean them up first:

Frequently Asked Questions

How does this tool convert text to binary?

Each character of your text is first encoded as one or more UTF-8 bytes, and each byte is then displayed as an 8-bit binary number. For example, the letter A is one byte (65) which becomes 01000001 in binary.

What is the difference between ASCII and Unicode here?

Plain ASCII covers only codepoints 0 to 127, which fit in a single byte. This tool uses UTF-8, which is a superset of ASCII: ASCII characters produce one byte, but accented letters, CJK characters, and emoji produce 2 to 4 bytes. The codes you see are the actual UTF-8 byte values, which is what files and network protocols actually transmit.

Can I decode codes that have no separator?

Yes. If your input is one long string with no spaces, the tool will try to split it into fixed-width groups: 8 characters for binary, 2 for hex, 3 for decimal or octal. Make sure padding is consistent so every byte uses the same width — for example, 01000001 not 1000001.

Why are some characters longer than 8 bits in binary?

Non-ASCII characters such as accented letters, Chinese characters, or emoji require more than one UTF-8 byte. Each byte is still 8 bits, but the character is represented by 2, 3, or 4 separate 8-bit groups. For example, the letter é is two bytes (11000011 10101001), and the rocket emoji 🚀 is four bytes.

What separators does the decoder accept?

The decoder accepts spaces, commas, dashes, semicolons, slashes, pipes, and new lines as separators between codes. It also strips 0b, 0x, and 0o prefixes automatically, so you can paste codes from most sources without cleaning them up first.

Is my text sent to a server?

Your text is processed on the server only when you click Convert. The live preview that updates as you type runs entirely in your browser using JavaScript, and is never transmitted.

Practical Use Cases

For Programming & Development

For Education & Learning

For Fun & Curiosity

Tips for Best Results

Additional Resources

Reference this content, page, or tool as:

"Text to Binary/Hex/ASCII Converter" at https://MiniWebtool.com/text-to-binary-hex-ascii-converter/ from MiniWebtool, https://MiniWebtool.com/

by miniwebtool team. Updated: Apr 27, 2026

Chat with your favorite AI

For Gemini, paste the copied question into the chat. You can also copy it below.

View the question

Encoders And Decoders:

Top & Updated:

Binary to Hex ConverterHex to Binary ConverterImage to ASCII Art ConverterView all →
Home Page > Miscellaneous > Encoders And Decoders > Text to Binary/Hex/ASCII Converter