Skip to content
SmallEasyTools

Binary / Hex / Text Converter

Type in any box and see every other format update instantly: text, binary, hexadecimal, decimal bytes, octal and Base64. Plus a number base converter for binary, octal, decimal and hex numbers of any size.

  • Free
  • Runs in your browser
  • No sign-up needed

Type in any box — the others update instantly. Separate bytes with spaces.

Number base converter

Free and unlimited · runs entirely in your browser

Rate this tool:
Share: Facebook X LinkedIn WhatsApp Email

Quick answer

To convert text to binary, type in the Text (UTF-8) box and the Binary, Hexadecimal, Decimal (bytes), Octal and Base64 boxes update instantly. To decode binary to text, type or paste in the Binary box instead — any box can be the input. Below, the number base converter converts a single number between binary (base 2), octal (8), decimal (10) and hexadecimal (16), including very large numbers.

Text formats:
Text, binary, hex, decimal bytes, octal, Base64
Encoding:
UTF-8 (emoji and all languages)
Input:
Type in any box; spaces, commas or continuous digits
Number converter:
Base 2, 8, 10 and 16
Big numbers:
Supported (arbitrary size integers)
Errors:
Invalid bytes are reported
Upload needed:
No – runs in your browser
Price:
Free

Computers store everything as numbers, and ultimately as binary digits — ones and zeros. Text is no exception: every letter is stored as one or more bytes, each byte being eight bits. Seeing those bytes in different notations is part of everyday work for programmers, network engineers, electronics students and anyone learning how computers work: binary for bits and flags, hexadecimal for memory, colours and hashes, decimal for byte values, octal for Unix permissions, and Base64 for sending data as text.

Our binary converter shows all of these views of the same data side by side. Type "Hi" in the text box and you immediately see 01001000 01101001 in binary, 48 69 in hex, 72 105 in decimal, 110 151 in octal and SGk= in Base64. Edit any box and the others follow, so you can also decode binary or hex messages back into readable text.

Text is encoded as UTF-8, the encoding used by the web, so accented letters, Bengali, Arabic, Chinese and emoji are converted correctly — an emoji like 👋 becomes four bytes, which you can see in every format.

For single numbers, the number base converter converts between binary, octal, decimal and hexadecimal. It uses arbitrary-precision integers, so even very large numbers convert exactly.

How to convert text to binary – step by step

  1. 1 Choose your input boxType text in the Text box, or paste binary, hex, decimal, octal or Base64 in its box.
  2. 2 Watch the conversionsAll other formats update instantly.
  3. 3 Use any separatorBytes can be separated by spaces or commas; binary and hex can also be pasted as one continuous string.
  4. 4 Convert single numbersUse the number base converter below for numbers like 255, 0xFF or 11111111.
  5. 5 Copy the resultClick copy next to the format you need.

Why use this binary converter?

Six formats at once

Text, binary, hex, decimal, octal and Base64 together.

Two-way conversion

Encode text or decode binary and hex back to text.

UTF-8 correct

Works with every language and emoji.

Flexible input

Spaces, commas or continuous digits.

Big number support

Base 2, 8, 10 and 16 conversion of any size.

Private and free

Runs in your browser, no sign-up.

Number systems explained

SystemBaseDigitsExample (decimal 255)Common use
Binary20–111111111Bits, flags, digital logic
Octal80–7377Unix file permissions (chmod 755)
Decimal100–9255Everyday numbers, byte values
Hexadecimal160–9, A–FFFColours (#FF0000), memory addresses, hashes, MAC addresses

How text becomes binary

Each character is first turned into a number by a character encoding. In ASCII and UTF-8, the capital letter A is 65, a is 97, a space is 32 and the digit 0 is 48. That number is then written in binary using eight bits: 65 is 01000001. Characters outside basic English need more bytes in UTF-8: é takes two bytes, most Bengali and Hindi letters take three, and emoji take four. That is why "আ" appears as three groups of eight bits and why a short message with emoji produces more binary than you might expect.

Converting binary to decimal by hand

Each position in a binary number is worth twice the one to its right: 1, 2, 4, 8, 16, 32, 64, 128 from right to left in a byte. Add the values of the positions containing a 1. For example, 01001000 has ones in the 64 and 8 positions: 64 + 8 = 72, which is the letter H. To go the other way, repeatedly divide the decimal number by 2 and write down the remainders from bottom to top. Hexadecimal is a shortcut: each hex digit represents exactly four bits, so 0100 1000 is 4 and 8 — hex 48.

The ASCII table at a glance

CharacterDecimalHexBinary
Space322000100000
0483000110000
A654101000001
Z905A01011010
a976101100001
z1227A01111010
Notice that lowercase letters are exactly 32 higher than uppercase — a single bit (00100000) is the difference between A and a.

Practical uses

  • Learning and homework — check binary, octal and hex conversions for computer science courses.
  • Programming — inspect the bytes of a string, debug encoding problems and work with bit flags.
  • Networking — convert IP address octets and subnet masks to binary.
  • Web design — understand hex colour codes; convert them fully with our Color Converter.
  • Unix permissions — understand chmod values like 644 and 755 in octal.
  • Puzzles and messages — encode or decode secret binary messages for fun.

Binary, hex and Base64

Binary is the most explicit view of data but the longest — eight characters per byte. Hexadecimal halves that to two characters per byte and is standard for hashes and raw data dumps. Base64 is more compact still — four characters per three bytes — and is used to send binary data through text channels such as email and JSON. For larger Base64 tasks, use our dedicated Base64 Encoder, and to see hashes of text in hex, try the Hash Generator.

Bits, bytes and file sizes

A bit is a single binary digit, 0 or 1. Eight bits make a byte, which can hold 256 different values (0 to 255) — enough for one English character, one colour channel of a pixel or one small number. Larger units build on bytes: a kilobyte is 1,000 bytes (or 1,024 in the older binary convention, now called a kibibyte), a megabyte about a million and a gigabyte about a billion. That is why an internet speed of 100 megabits per second downloads roughly 12.5 megabytes per second: divide bits by eight to get bytes. Seeing text as bytes in this converter makes these relationships concrete — a tweet of 280 English characters is about 280 bytes, while the same length in Bengali is closer to 840 bytes.

Binary in networking: IP addresses and subnets

An IPv4 address like 192.168.1.10 is four bytes. In binary it is 11000000.10101000.00000001.00001010. Subnet masks such as 255.255.255.0 are a row of ones followed by zeros (11111111.11111111.11111111.00000000), and the number of ones gives the CIDR notation — /24 in this case. Converting each octet in the number base converter is a quick way to understand which part of an address identifies the network and which identifies the device.

Signed numbers and two's complement

The number base converter works with non-negative integers. In computers, negative numbers are usually stored in two's complement: to get −5 in 8 bits, write 5 (00000101), invert the bits (11111010) and add 1 (11111011). The leftmost bit then indicates the sign. Keep this in mind when reading binary values from hardware registers or low-level code, where 11111011 may mean 251 or −5 depending on context.

Why programmers love hexadecimal

Hexadecimal sits perfectly between humans and machines. Because one hex digit equals exactly four bits, two hex digits always describe one byte, and long binary strings become short and readable. Programmers see hex everywhere: colour codes in CSS, memory addresses in error messages, MAC addresses on network cards, Unicode code points like U+0041, file signatures that identify formats, and hash values. Learning to read a few common hex values — 00, 0A for a newline, 20 for a space, 41 for A, FF for the maximum byte — makes debugging much easier.

Troubleshooting

  • "Not a valid byte". A group is too large (over 255) or contains digits not allowed in that base, such as 2 in binary or G in hex.
  • Text shows strange symbols. The bytes are not valid UTF-8 text — they may be binary data or another encoding.
  • Binary without spaces gives the wrong result. Continuous binary is split into groups of eight; make sure the length is a multiple of 8.
  • Leading zeros. 1001000 and 01001000 are the same value; the converter shows full 8-bit bytes.

Frequently asked questions

How do I convert text to binary?

Type your text in the Text box; the binary appears instantly.

How do I convert binary to text?

Paste the binary in the Binary box; the text appears in the Text box.

What is 255 in binary?

11111111, which is FF in hexadecimal and 377 in octal.

Why does an emoji have so many bits?

Emoji use four bytes in UTF-8, so they produce 32 bits.

Does it support Bengali and other languages?

Yes. Text is encoded as UTF-8.

Can I convert hexadecimal to text?

Yes. Paste hex bytes in the Hexadecimal box.

Can I convert large numbers between bases?

Yes. The number converter supports very large integers.

What is octal used for?

Mainly Unix file permissions, such as 755 and 644.

Do I need spaces between bytes?

No. Spaces or commas are optional for binary and hex.

Is the binary converter free?

Yes. No sign-up required.

Is my text uploaded?

No. Everything runs in your browser.

How many bits are in a byte?

Eight bits make one byte, which can store values from 0 to 255.

Last updated November 21, 2026 · Written and tested by the SmallEasyTools team.