Multi-Base Encoder / Decoder
Encode and decode data in Base16, Base32, Base58 (Bitcoin), Base64, Base64URL, and Base85 (ASCII85). Client-side with file upload support.
Updated
Multi-Base Encoder/Decoder
Encode and decode data in Base16, Base32, Base58, Base64, Base64URL, and Base85 formats.
Base Format
Standard RFC 4648 with padding
Input (text or file)
Output
Stats
Frequently Asked Questions
What does it do?
Encodes/decodes data across six base formats: Base16 (hex), Base32 (RFC 4648), Base58 (Bitcoin alphabet), Base64, Base64URL, and Base85 (ASCII85), with live conversion and file upload.
Which Base58 alphabet?
Bitcoin alphabet (123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz), excluding the ambiguous 0, O, I, l. BigInt-based so arbitrarily large inputs work precisely.
Is my data sent to a server?
No. All encoding runs in your browser via TextEncoder/TextDecoder and native BigInt. Text and uploaded binaries never leave your device.
Is the Multi-Base Encoder / Decoder free to use?
Yes, the Multi-Base Encoder / Decoder is 100% free with no registration, no hidden fees, and no usage limits. All processing happens locally in your browser, ensuring complete privacy.
Does the Multi-Base Encoder / Decoder work on mobile devices?
Yes, the Multi-Base Encoder / Decoder is fully responsive and works on smartphones and tablets. You can use it on any device with a modern web browser -- no app download required.
Do I need to create an account to use this tool?
No account or registration is needed. Simply open the Multi-Base Encoder / Decoder in your browser and start using it immediately. There are no sign-up walls or usage restrictions.
What programming languages or formats does this support?
The Multi-Base Encoder / Decoder supports a wide range of popular formats and languages. Check the tool interface for the full list of supported options.
How do I use the Multi-Base Encoder / Decoder?
Simply enter your input in the provided field, adjust any settings to your preference, and the tool will process it instantly. You can then copy the result to your clipboard or download it.
Which browsers are supported?
The Multi-Base Encoder / Decoder works in all modern browsers including Chrome, Firefox, Safari, Edge, and Opera. For the best experience, use the latest version of your preferred browser.
What is the difference between Base64 and Base64URL?
Both use a 64-character alphabet to turn binary into printable text, but they differ in three characters and in padding. Standard Base64 (RFC 4648) uses A-Z, a-z, 0-9 plus "+" and "/", and pads the output with "=" so its length is a multiple of four. Base64URL swaps the two problem characters "+" and "/" for "-" and "_", because plus and slash have special meaning in URLs and filenames, and it usually drops the "=" padding entirely. That makes Base64URL safe to drop into a query string, a path segment, or a JSON Web Token without further escaping. The decoded bytes are identical either way. This tool offers both as separate tabs, so you can encode a value as standard Base64 for an email attachment or Base64URL for a token, then use Swap to round-trip it.
Is Base64 encryption, and is my data secure once it is encoded?
No. Base64 and every other base encoding here are not encryption and provide no security at all. They simply remap raw bytes onto a smaller set of printable characters so binary data can travel through systems that only handle text, like email or URLs. Anyone who sees an encoded string can decode it instantly with no key or password, so a Base64 "obfuscated" secret is effectively plaintext. Treat encoding as a transport and compatibility step, never as a way to hide an API key, password, or token. If you need real secrecy, encrypt the data first with something like AES, then optionally Base64-encode the ciphertext for safe transport. This tool runs entirely in your browser precisely because the values you paste, such as JWTs or certificates, are sensitive even though they are not secret. Decode a string here to confirm just how readable encoded data really is.
How much does Base64 increase the size of my data?
Base64 expands data by roughly 33%, because it packs three bytes of input into four output characters, so the encoded result is about 1.33 times the original size before padding is added. That overhead is the price of being text-safe, and it is why large files sent as Base64, such as inline data URIs, weigh noticeably more than the raw binary. The other formats here have different ratios: Base16 (hex) exactly doubles the size at 2.0 since every byte becomes two characters, Base32 lands near 1.6, and Base85 (ASCII85) is the most compact text-safe option at about 1.25 because it packs four bytes into five characters. The live Stats panel in this tool shows your input size in bytes, the output character count, and the exact size ratio, so you can compare formats and pick the most efficient one for your use case.
How do I decode a JWT to read its header and payload?
A JSON Web Token is three Base64URL-encoded segments joined by dots: header, payload, and signature. To read the first two, copy the part before the first dot and decode it as Base64URL to see the header JSON, then do the same with the middle segment to reveal the payload claims such as "sub", "exp", and "iat". Use the Base64URL tab specifically rather than standard Base64, because JWTs use the URL-safe alphabet and omit padding, which a strict standard decoder may reject. The signature, the third segment, is a cryptographic hash and will not decode into readable text, so do not expect meaningful output from it. Because everything runs locally in your browser, you can paste a real production token here without it ever leaving your machine. Drop each segment into the decoder above to inspect exactly what a token is carrying.
Why does Base32 use padding and avoid look-alike characters?
Base32 (RFC 4648) encodes five bytes into eight characters, and when the input does not divide evenly into five-byte groups, "=" padding fills the final block so the length stays a multiple of eight. Its 32-character alphabet uses A-Z and 2-7, deliberately leaving out 0, 1, 8, and 9 along with letters that look like them, which makes encoded strings easier to read aloud, type by hand, or transcribe from a screen without errors. That human-friendliness is why Base32 is the standard for TOTP and two-factor authentication secret keys you scan or copy into an authenticator app, and for Tor onion addresses. It is also case-insensitive, so capitalization does not change the decoded result. This tool implements the RFC 4648 alphabet with padding, so you can encode a 2FA secret to share it or decode one to verify it matches what your app expects.
Embed This Tool
Add a free, live version of this widget to your own website or blog post — it runs entirely in your visitors' browsers, with a credit link back to The Toolbox.
<iframe src="https://getthetoolbox.com/embed/base-encoder" title="Multi-Base Encoder / Decoder — The Toolbox" width="100%" height="260" style="max-width:480px;border:1px solid #e2e8f0;border-radius:12px" loading="lazy"></iframe>
<p style="font-size:12px;margin:4px 0 0"><a href="https://getthetoolbox.com/developer-tools/base-encoder?utm_source=embed&utm_medium=widget" target="_blank" rel="noopener">Free Multi-Base Encoder / Decoder</a> by The Toolbox</p>Related Tools
Free API Tester Online
Test REST APIs with GET, POST, PUT, DELETE requests. Free, fast, and works entirely in your browser with no sign-up required.
Free cURL to Code Converter
Convert cURL commands to code in JavaScript, Python, PHP. Free, fast, and works entirely in your browser with no sign-up required.
Free JSON Schema Generator
Generate JSON Schema from your JSON data automatically. Free, fast, and works entirely in your browser with no sign-up required.
Free HTTP Headers Parser
Parse and analyze HTTP headers from requests and responses. Free, fast, and works entirely in your browser with no sign-up required.
About the Multi-Base Encoder / Decoder
The Multi-Base Encoder / Decoder converts data between plain text or binary and six different base encodings: Base16, Base32, Base58, Base64, Base64URL, and Base85. Pick a format, choose whether you want to encode or decode, and the conversion runs as you type. It's built for developers, security engineers, and anyone debugging tokens, hashes, certificates, or wire formats who needs to move between a human-readable string and the raw bytes underneath it.
Everything happens in your browser. Text is read through the browser's TextEncoder/TextDecoder, large numbers use native BigInt, and uploaded files are processed locally with the File API. Nothing you paste or upload is sent to a server, so it's safe to drop in an API key, a signed JWT, or a private certificate without it leaving your machine. There's no sign-up and no usage limit.
The six base formats and where each is used
- Base16 (hexadecimal) — two characters per byte using 0-9 and A-F. The standard way to display hashes, byte dumps, and color values.
- Base32 (RFC 4648) — a 32-character alphabet with
=padding, case-insensitive and free of look-alike symbols. Common in TOTP/2FA secret keys and onion addresses. - Base58 (Bitcoin) — uses the alphabet
123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz, deliberately excluding0,O,I, andlso values can't be misread when copied by hand. It powers Bitcoin addresses and IPFS hashes. This tool uses arbitrary-precisionBigIntmath, so even very long inputs convert exactly. - Base64 — the familiar RFC 4648 encoding with
+,/, and=padding, used in data URIs, email attachments (MIME), and HTTP basic auth. - Base64URL — a URL- and filename-safe variant that swaps
+and/for-and_and drops padding. It's the encoding inside JSON Web Tokens (JWTs). - Base85 (ASCII85) — the Adobe variant, wrapped in
<~and~>, packing four bytes into five characters for a denser result than Base64. Used in PostScript and PDF streams.
How to use it
Choose a base from the tabs, then set the mode to Encode or Decode. In encode mode you type or paste text, or use the Upload button to feed in a binary file such as an image or PDF; the tool encodes the raw bytes directly. In decode mode you paste an encoded string and get the original text back (binary that isn't valid UTF-8 falls back to a hex view so nothing is lost). The Swap button flips your output into the input and reverses the mode, so you can round-trip a value in one click. Sample loads a working example for the current format, and Clear resets everything. Results can be copied to the clipboard or downloaded as a text file.
A live Stats panel shows the input size in bytes, the output character count, and the size ratio (output divided by input). That ratio is a quick reality check: Base64 expands data by roughly 33% (a ratio near 1.33), Base16 doubles it (2.0), and Base85 is the most compact of the text-safe options at about 1.25.
Why base encoding matters
Many systems can only carry plain text, but the data you need to move through them is binary. Base encoding solves that by remapping raw bytes onto a small, safe set of printable characters. A crucial point that trips people up: encoding is not encryption. Base64 and its relatives offer zero secrecy — anyone can decode them instantly — so they're for transport and compatibility, never for hiding secrets.
Typical jobs this handles: inspecting the header and payload of a JWT, converting a 2FA secret to and from Base32, sanity-checking a Bitcoin address in Base58, turning a small icon into a Base64 data URI for CSS, or reading an ASCII85 stream from a PDF. Having all six formats in one place, with instant conversion and accurate size stats, removes the guesswork of remembering which alphabet and padding rules each one uses.