Skip to main content
WizTools123
WizTools123
Free Online Tools

Tool Categories


Text Tools New Tool

Free Online Text to Binary, Hex, Octal and Decimal Converter

Convert text to binary, hexadecimal, octal or decimal in your browser, and convert any of them back to text. You choose whether a character means its UTF-8 bytes or its Unicode code point, which is the difference that makes other converters wrong on accented letters and emoji. Separators, grouping and padding are yours to set.

Free Forever Nothing Uploaded Four bases Both directions
Free Online Text to Binary, Hex, Octal and Decimal Converter
Share this tool
Advertisement Slot (Top Banner) Google AdSense Unit • Responsive Banner
Text to Binary, Hex and Octal Everything happens in this tab. Nothing you paste is sent anywhere.
Your text or values
0 characters 0 words 0 lines
Result
0 characters 0 lines
Direction
A character means
How to write it
Lines

0 characters 0 values 0 bytes as UTF-8 0 that made no sense

Buy Us A Coffee

Enjoying WizTools123? Help keep our server infrastructure 100% free and open for everyone.

Buy Us A Coffee
Sponsored Content (Below Tool) Google AdSense Placement

How to Convert Text to Binary or Hex

A few steps, and nothing is uploaded.

1
Paste text or values Either direction starts the same way. The tool does not guess which you meant, so set the direction to match.
2
Pick the base Binary for teaching and puzzles, hexadecimal for anything technical, decimal for the plain code point numbers.
3
Decide bytes or code points Leave it on UTF-8 bytes unless you specifically want the Unicode numbers. On plain English text the two give the same answer.
4
Set the layout and copy A space between values and zero padding is the usual convention. Grouping eight or sixteen per line makes long output readable.

What to Know About Converting Text to Numbers

Why the same letter can give two different answers.

The same letter can give two different answers, and both are correct. An e with an acute accent is one Unicode code point, number 233, but two bytes when stored as UTF-8. Converters that do not offer the choice silently pick one, which is why their output sometimes will not decode anywhere else.
On plain English text the two options are identical. Every character up to 127 is one byte and one code point with the same value, so for ordinary letters, digits and punctuation it makes no difference at all. The choice only starts to matter with accents, other alphabets, symbols and emoji.
Padding is what makes unspaced binary readable by a machine. Eight bits per byte with leading zeros means a decoder can cut the stream every eight characters. Without padding, the values run together and cannot be separated again, so switching padding off while using no separator produces output that cannot be decoded.
Decoding is deliberately forgiving. Prefixes such as 0x and 0b are ignored, any run of spaces, commas, hyphens or line breaks counts as a separator, and unspaced binary or hex is cut into even pieces. Anything that is not a valid value for the chosen base is counted and reported rather than quietly turned into a question mark.
Octal is in here for completeness more than for use. It survives in file permissions and in a few older systems, and almost nothing else. If you are not sure which base you need, it is hexadecimal.

Key Features & Capabilities

What this tool does, and what it deliberately does not.

Four bases Binary, octal, decimal and hexadecimal, all converting in both directions on one page.
Unicode done properly Choose UTF-8 bytes or code points, so accented letters, other alphabets and emoji convert correctly.
Layout you control Separator, zero padding, capital or small hex letters, base prefixes and how many values go on a line.
Forgiving decoder Pasted values with prefixes, mixed separators or no separators at all are usually read without any fiddling.
Honest about failures Values that are not valid for the base are counted and reported instead of being turned into rubbish.
Nothing is uploaded The conversion is arithmetic done in this tab, so nothing you paste is sent anywhere.

About the Text to Binary Converter

Converting text to binary is a teaching exercise, a puzzle answer and occasionally a real debugging need, and almost every converter online handles it fine right up to the first character outside the English alphabet. Then they disagree with each other, and the output will not decode where you need it to.

The reason is a question most tools never ask. A character is not a number. It has a Unicode code point, which is a number, and it has a storage form in UTF-8, which is one to four bytes. For the letter A those are both 65 and nobody notices. For an accented letter or an emoji they are completely different, and which one you want depends entirely on what you are doing.

Everything else on the page is about making the output usable rather than merely correct. Padded eight bit groups can be decoded again. Sixteen values to a line can be read by a human. A base prefix tells the next tool what it is looking at. None of it is clever, but leaving it out is what turns a correct answer into one you have to clean up by hand.

Frequently Asked Questions

Bytes against code points, padding, separators and decoding.

Bytes, unless you know you want the other. Bytes are what a file, a network connection or another program will expect. Code points are the numbers printed in Unicode tables, useful when you are looking a character up rather than storing it.

Because in UTF-8 most emoji are stored as four bytes. Switch to code points and you get one value instead, which is the number you would find in a Unicode reference.

Almost always because padding was switched off. Without leading zeros the values are different lengths and nothing can tell where one ends and the next begins. Switch padding back on and use a space between values.

Yes. Prefixes are ignored when decoding, as are mixed separators, so values copied out of a debugger or a hex editor normally work without being cleaned up first.

They are skipped and counted, and the count appears under the options. Nothing invalid is turned into a replacement character, because that would hide the problem rather than showing it.

Every Other Text Tool

24 more tools in this set. All free, all in your browser.

Advertisement Slot (Bottom Banner) Google AdSense Unit • Responsive Banner