Base64 Encode & Decode
Encode plain text to Base64 and decode Base64 back to text with instant bidirectional switching. Standard RFC 4648 only β no URL-safe variant.
Loading tool controlsβ¦
Verify it yourself: press F12, open the Network tab, and use this tool β your files are never uploaded.
Base64 Encode & Decode at a glance
- Price
- Free
- Account
- Not required
- File uploads
- None β your files are never uploaded
- Category
- Developer Tools
Who uses Developer Tools?
Developers and engineers formatting JSON, testing regex, hashing data, encoding values or building API requests.
How to Use Base64 Encode & Decode
Follow these simple steps to get instant results in your browser.
Select Operation
Choose 'Encode' to generate Base64 or 'Decode' to restore human-readable text.
Input String
Type or paste your text into the input field.
Copy Result
Click 'Copy' to capture your encoded or decoded output string.
What is Base64 Encode & Decode & How Does It Work?
The Base64 Encode & Decode tool transforms raw text and binary strings into RFC 4648 Base64 strings and reverses Base64 back into clear text. It is built to support modern developer workflows, API authorization headers, and data URI generation.
Standard browser btoa() functions fail when encountering multi-byte Unicode characters (such as emojis or accented characters). Our encoder uses UTF-8 byte stream encoding before computing 64-radix representation, ensuring international character fidelity and avoiding Latin-1 character range exceptions.
Operating completely on the client side, you can safely encode credentials, Basic Auth strings (user:password), and session cookies without external exposure.
Key Features & Capabilities
Full UTF-8 Unicode Support
Safely encodes emojis, symbols, and non-ASCII character sets without crashing.
Bidirectional Switching
Quickly toggle between encoding and decoding with a single click.
File Upload (up to 5 MB)
Upload a file to read its Base64 in the input box; files over 5 MB are rejected.
Client-Side Processing
Credentials and keys are never transmitted to external cloud servers.
Pro Tips
- β’Bookmark this tool for instant one-click access anytime.
- β’Drag and drop files directly onto the input surface for fastest handling.
- β’All processing happens in your browser session for maximum speed and data safety.
π― Common Use Cases
Base64 Encoding (RFC 4648)
Each group of 3 input bytes is split into four 6-bit values, each mapped to A-Z, a-z, 0-9, + or /. A final partial group is padded with = so the output length is always a multiple of 4 characters.
Worked Example
- 1Input: Hello
- 2Bytes: H=72, e=101, l=108, l=108, o=111 β 5 bytes = 1 full group + 2 leftover bytes
- 3Output: SGVsbG8= (the = pads the final group to 4 characters)
- 4Decode: SGVsbG8= β Hello
Sources & Further Reading
- The Base16, Base32, and Base64 Data Encodings (RFC 4648) β IETF
- Base64 β Wikipedia
Frequently Asked Questions about Base64 Encode & Decode
Frequently asked questions
More Developer Tools
Complementary utilities for your workflow
Base64 Encode & Decode
Encode text or files to Base64, and decode back.