Convert between text, decimal, binary, hexadecimal and octal.
Text to binary
Each character as eight bits
HiDecimal to hexadecimal
A common programming conversion
255Binary back to text
Decode a binary string
01001000 01101001Text to binary
Each character as eight bits
HiDecimal to hexadecimal
A common programming conversion
255Binary back to text
Decode a binary string
01001000 01101001Pick what your input is and what you want out. Any combination of the five works.
Groups can be separated by spaces or commas. Prefixes such as 0x and 0b are accepted and ignored.
Binary is grouped into bytes and hexadecimal is padded, so the output stays readable.
A digit that cannot exist in the selected base is caught and named, rather than being silently reinterpreted.
Text converts via its UTF-8 bytes, so accented characters and emoji survive a round trip that byte-per-character tools destroy.
Binary in eight-bit groups and hexadecimal in pairs makes long output possible to check by eye.
Convert freely between five representations: plain text, decimal, binary, hexadecimal and octal. Choose what you are starting from and what you want, and the input is validated against that format — so a stray 2 in a binary string is caught and explained rather than producing nonsense. Text is handled as UTF-8, which means accented characters and emoji round-trip correctly instead of being mangled, and binary output is padded into readable eight-bit groups.
Keep going
Related pages in Everyday Utilities, plus what others are using right now.
More everyday utilities that pair well with this one.
Translate text to Morse code and back, with clear separators.
Convert numbers to Roman numerals and back, with strict validation.
Encode text to Base64, including full Unicode and URL-safe output.
Generate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes at once.
Convert between length, weight, temperature, volume, speed, data and more.
Generate random numbers in any range, whole or decimal, with no repeats.
Create strong random passwords with full control over length and characters.
Format, validate and minify JSON, with errors that point to the exact line.
Work out any percentage — of a number, as a share, or as a change.
Count words, characters, sentences and paragraphs as you type.
Count characters with and without spaces, against the limits that matter.
Find the mean, median, mode and range of a list of numbers, with the working shown.
Sample and population standard deviation and variance, both shown, with the working.
Turn a logo into favicon.ico, the PNG sizes a site needs, and the HTML to declare them.
Check a downloaded file against its published checksum, without uploading anything.
Stamp text like DRAFT or CONFIDENTIAL across a PDF, in your browser.
Turn JSON into readable YAML, with quoting and multiline strings handled properly.
Escape text for HTML, or turn entities back into readable characters.