Base64 Encoder - Text to Base64
Convert any text to Base64 encoding instantly. Our encoder handles UTF-8 characters, JSON strings, HTML, and any text input. Copy the Base64 output for use in APIs, data URIs, email encoding, or configuration files.
Our Base64 encoder decoder converts text to Base64 encoding and back in real-time. Paste any text and get the Base64-encoded version, or paste Base64 to decode it back to readable text. Supports standard Base64 (RFC 4648) and URL-safe Base64. Handles UTF-8 characters, JSON strings, and large text. All processing is client-side — your data never leaves your browser.
Base64 Analysis:
Tip: Base64 is encoding, not encryption. Never use it for security.
Select Encode to convert text to Base64, or Decode to convert Base64 back to text.
Type or paste your text (for encoding) or Base64 string (for decoding).
The result appears instantly. Click Copy to copy to clipboard.
Toggle URL-safe mode to use - and _ instead of + and / for URL-compatible output.
Base64 encoding converts binary data to printable ASCII text by splitting input bytes into 6-bit groups and mapping each group to one of 64 characters (A-Z, a-z, 0-9, +, /). Since 3 bytes (24 bits) map to 4 Base64 characters, the output is ~33% larger than the input. Padding (=) is added if the input length isn't a multiple of 3.
Base64 = encode(input bytes) → 6-bit groups → A-Za-z0-9+/ alphabet
Base64 output is always ~33% larger than the input
URL-safe Base64 replaces + with - and / with _ (useful for URLs and filenames)
Base64 is encoding, NOT encryption — anyone can decode it, so never use it for security
Use Base64 to embed small images in HTML/CSS via data URIs
JSON Web Tokens (JWT) use URL-safe Base64 encoding for header and payload
The = padding at the end can be safely removed for URL-safe Base64
Base64 handles binary data — it's how email attachments are transmitted
Our free Base64 encoder decoder converts text to Base64 and back instantly. Supports standard and URL-safe Base64, UTF-8 characters, and large text. All processing happens in your browser — your data stays private.
Convert any text to Base64 encoding instantly. Our encoder handles UTF-8 characters, JSON strings, HTML, and any text input. Copy the Base64 output for use in APIs, data URIs, email encoding, or configuration files.
Decode any Base64 string back to readable text. Paste Base64-encoded content and see the original text instantly. Handles standard Base64, URL-safe Base64, and Base64 with or without padding characters.
Data sourced from trusted institutions
All formulas verified against official standards.