Base converter
Encode and decode between text and Base2 through Base85, or convert integers between any two bases.
Runs entirely in your browser. Nothing you enter here is sent to the server.
Whole numbers of any size, negatives included. Digits above 9 are
letters a–z, so base 36 is the top.
What each encoding is, and the conventions used here
The top half converts bytes. Your input is decoded from the format on the left into raw bytes, then re-encoded into the format on the right. "Text" means UTF-8. Everything happens in this page.
- Text
- UTF-8. One emoji is four bytes, not one character.
- Base2, Base8
- One group per byte — eight binary digits or three octal digits — separated by spaces. This is the byte-by-byte reading, not one huge number, so leading zero bytes survive. Spaces are optional on the way in.
- Base16
- Hex, lowercase out, either case in. Whitespace and
0xignored. - Base32
- RFC 4648:
A–Zand2–7, padded with=. The same alphabet TOTP secrets use. - Base36, Base58
- Positional: the whole input is treated as one big number.
Base58 is the Bitcoin alphabet, which drops
0,O,Iandlso nobody mistypes them. Leading zero bytes are preserved as leading1s, the way Base58Check does it. - Base64
- RFC 4648 standard, with
+and/and=padding. - Base64url
- Same, but
-and_so it survives being put in a URL. Padding is dropped on output and accepted on input. - Base85
- Ascii85 as used by PostScript and PDF, without the
<~ ~>wrapper. Four bytes become five characters, so it is about 7% smaller than Base64.
Decoding is strict: a character that does not belong is reported with the position it was found at, rather than being skipped to produce plausible nonsense.
None of this is encryption
Base64 and friends are for moving bytes through channels that only accept text. Anything encoded here can be decoded by anyone, instantly, with no key. If it needs to stay secret, it needs encryption.
Other tools
- Code scanner — Read QR codes and barcodes with your camera or from an image. Every format ZXing knows.
- Code generator — Make a QR code, Data Matrix, Aztec, PDF417 or a linear barcode and download it.
- Link inspector — See where a link really goes before you open or shorten it: the real host, lookalike letters, hidden redirects and tracking parameters.
- Hash generator — MD5, SHA family, CRC32 and MySQL5 over text or a file. The file is read in your browser.
- JWT decoder — Read a JSON Web Token's header and claims, with every timestamp as a date. Decoded right here; the token is never sent or stored.
- SSH key fingerprint — SHA256 and MD5 fingerprints, key type and size, and SSHFP records for a public key. Private keys are refused unread.
- Password generator — Random passwords from a CSPRNG, with the character classes you pick.
- TOTP generator — Turn a TOTP secret or otpauth:// link into the current code. The secret stays on your device.
- Timestamp converter — Unix time to a calendar date and back, in every format at once. Live clock included.
- Subnet calculator — IPv4 and IPv6: network, range, host count, masks and reverse-DNS pointers.
- Image resizer — Resize and convert an image without it ever leaving your browser. Re-encoding drops EXIF and GPS.
- IP info — Your public IPv4 and IPv6, as this server sees them.
- PHP obfuscator — Wrap PHP so it self-decodes at runtime. Runs on the server; the code is never stored.