Convert text to binary
Translate text to binary, hex or octal and back again, in UTF-8. Runs in your browser — nothing is uploaded.
- Free, no account
- Nothing is uploaded
- Runs in your browser
How it works
- 1 What goes in Text, in any language
- 2 It runs in your browser On your own device. Nothing is uploaded, there is no queue and no account, and it keeps working with the network switched off.
- 3 What comes back Its bytes in binary, octal or hex
What it does
Type text and get binary, or paste binary and get the text back. Encoding is UTF-8 rather than character codes, so accents and emoji survive the round trip instead of turning into rubbish — and hex and octal are one dropdown away.
This page does the work itself. Your text is handled by the browser and never sent anywhere — there is no server here to send it to.
Questions
Why does my emoji become four groups of eight bits?
Because UTF-8 encodes characters in one to four bytes and an emoji needs all four. Tools that use charCodeAt produce two wrong values instead, which look plausible and decode to something else. Everything here goes through TextEncoder, so what comes out converts back to exactly what went in.
Can I paste binary with no spaces?
Yes. A run of digits with no separators is split into fixed-width groups — eight for binary, two for hex, three for octal. If the total does not divide evenly you get told the count rather than a silently mangled result.
Is this ASCII or UTF-8?
UTF-8, which is identical to ASCII for the first 128 characters. So plain English text gives you exactly the ASCII answer, and anything beyond it stays correct instead of breaking.
More developer tools
-
Developer
Base64
Encode text or a file to Base64 and decode it back, with URL-safe output and data URIs.
-
Developer
SHA hashes
Compute SHA-1, SHA-256, SHA-384 and SHA-512 for text or a file, using your browser's own crypto engine.
-
Developer
Unix time
Convert Unix time to a date and back, in UTC and your own timezone at once, with seconds and milliseconds.
-
Developer
URL encode
Percent-encode a URL or a single value and decode it back, with the encodeURI and encodeURIComponent distinction made explicit.
-
Developer
UUID
Generate v4 random or v7 time-ordered UUIDs in bulk, from your browser's cryptographic random source.
-
Developer
JWT decoder
Read a JWT's header and payload, with expiry checked against the clock.
-
Developer
Regex tester
Test a JavaScript regular expression against your own text, see every match and capture group, and read the pattern back in plain English.
-
Developer
Cron expressions
Turn a cron expression into plain English and see its next five run times, in your own timezone and in UTC.
-
Developer
cURL converter
Paste a curl command and get it back as JavaScript fetch, Python requests and a raw HTTP request.