Base64 Encode & Decode
Runs locallyEncode/decode Base64, Base64URL, Base32, Base58, hex, binary, ROT13, Morse and files.
What is Base64 & Encoding Hub?
Encode and decode UTF-8 text, binary files, and images across Base64, Base64URL, Base32, Base58, Base85, Hex, Binary, Octal, URL, HTML entities, Unicode escapes, Punycode, ROT13, Morse, and Quoted-Printable — with automatic input format detection.
How to use Base64 & Encoding Hub
- Step 1
Choose your encoding format or leave Auto-detect enabled.
- Step 2
Paste text, drop a file/image, or switch between Encode and Decode.
- Step 3
For image files, copy as raw Base64, Data URI, CSS background, or HTML <img> tag.
- Step 4
Copy or download the decoded bytes or encoded text.
Features
- UTF-8 safe TextEncoder/TextDecoder across Base64, Base64URL, Base32, Base58, Ascii85/Base85
- Also supports Hex, Binary, Octal, Unicode \u escapes, ROT13, Morse, and Quoted-Printable
- File & image drop with Data URI preview and MIME detection
- Auto-detect heuristic for pasted Base64, Hex, or URL-encoded strings
- Runs locally in your browser
Example
Input
Hello, NexaTools! 🚀
Output
SGVsbG8sIFZlbG9taW50ISDwn5qA
UTF-8 encodes multi-byte emoji accurately before Base64 conversion.
Frequently asked questions
What is the difference between Base64 and Base64URL?
Base64URL replaces + and / with - and _ and typically omits = padding so tokens are safe inside URLs.
Is Base64 encryption?
No. Base64 is reversible encoding; anyone can decode it without a key.
Can I convert an image to a Base64 Data URI?
Yes. Drop any PNG, JPG, SVG, or WebP file to preview and copy its data:image/... URI.
Are my files uploaded?
No, FileReader and byte encoding happen inside your browser.
Related tools
JWT Decoder & Verifier
Decode, verify HS/RS/ES/EdDSA signatures, sign test tokens and inspect expiry claims locally.
Hash Generator
Compute MD5, SHA-1/2/3, BLAKE2/3, CRC32, xxHash and HMAC for text or streamed files.
Image Compressor & Converter
Compress, resize and convert PNG, JPEG and WebP images locally with batch ZIP export.