Base64 Encoder / Decoder
What is Base64?
Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It is commonly used when there is a need to encode binary data that needs to be stored and transferred over media that are designed to deal with textual data. Our encoder supports full UTF-8 (including emojis and multilingual text) and URL-safe Base64 mode.
- Encoding: Converts data to standard or URL-safe Base64
- Decoding: Converts Base64 back to original UTF-8 text
- UTF-8 & Emojis: Lossless encoding for emojis and non-Latin character sets
- URL-Safe Mode: Replaces + and / with - and _ without padding for web URLs
- Privacy: 100% client-side processing, no data uploaded to server
Common Uses
- Data URIs: Embedding images directly in HTML/CSS
- URL Parameters & JWTs: Passing encoded strings in query strings using URL-safe Base64
- Email & MIME: Sending attachments via MIME
- APIs: Transmitting binary payloads in JSON
- Authentication: Basic HTTP authentication headers
What it handles
What it handles
- Text & files: Encode plain text or entire files to Base64
- UTF-8 Unicode: Full emoji and international character support via TextEncoder
- URL-safe variant: Toggle RFC 4648 URL-safe mode (- and _ with no padding)
- Instant results: Short inputs encode/decode in real time as you type
- One-click swap: Reverse encode ↔ decode without retyping
How to Use
- Select Encode or Decode mode
- Optionally toggle URL-Safe mode (- and _ without = padding)
- Paste or type your text or upload a file
- View the instant output in real-time or click Process
- Use the Swap button to quickly reverse the operation
- Click the copy icon to copy the result to your clipboard
Glossary
- Base64 Encoding
- A method of converting binary data into ASCII text format using 64 characters (A-Z, a-z, 0-9, +, /).
- URL-Safe Base64
- A variant defined in RFC 4648 where "+" is replaced by "-", "/" is replaced by "_", and "=" padding is omitted, making it safe for URLs and filenames.
- UTF-8
- The dominant variable-width character encoding for the web, capable of encoding all 1,112,064 valid character code points in Unicode, including emojis.
- Data URI
- A URI scheme that allows embedding small files inline in web documents.
- Padding
- Equal signs (=) added to the end of Base64 encoded strings to ensure proper 4-character block length.
Sources
- RFC 4648 — The Base16, Base32, and Base64 Data Encodings — IETF specification this tool implements