Text to Binary, Octal, Decimal & Hex Converter
NEWConvert text to binary, octal, decimal or hex bytes and back, with UTF-8 support, or convert integers between bases 2 to 36, in your browser.
Runs 100% in your browser — your input is never uploaded or stored on our servers.
7 characters · 10 bytes in UTF-8
Quick Examples
Typical inputs and the results this tool produces.
Overview
Text to Binary, Octal, Decimal & Hex Converter turns any text into the numbers of its bytes and turns those numbers back into text. Letters, accents and emoji all work, because the text is encoded as UTF-8 first: a plain letter is one byte, é is two bytes and 😀 is four.
Developers, students and anyone reading a hex dump can choose the number system, the separator (space, comma, new line or none), padding and a 0x, 0b or 0o prefix. A second mode converts a whole integer between any two bases from 2 to 36 with exact big-number arithmetic.
Everything runs in your browser, so the text you convert is never uploaded. If a number is not valid for the chosen base or a byte is above 255, the message names the offending token.
Why use this tool?
- UTF-8 aware: emoji and accents convert correctly
- Both directions with clear errors
- Separator, padding and prefix options
- Exact big integers in bases 2 to 36
- Private: runs in your browser
Features
Both directions
Encode text to numbers or decode numbers back to text, and swap with one click.
UTF-8 bytes
Characters outside ASCII become two to four bytes, shown exactly as stored.
Format options
Choose space, comma, new line or no separator, pad bytes and add a 0x, 0b or 0o prefix.
Bases 2 to 36
Number mode converts integers of any size with BigInt and lists common bases.
Named errors
Invalid digits, bytes above 255 and broken UTF-8 are reported with the offending token.
Copy result
Copy the converted text or numbers with one button.
How to Use
Pick a mode
Use Text ↔ bytes for text, or Number bases 2–36 for converting an integer.
Choose the system
Select binary, octal, decimal or hexadecimal, then the separator and other options.
Type or paste
Enter text to encode, or switch to Numbers → text and paste bytes separated by spaces or commas.
Copy the result
Check the output box and press Copy result.