Base64 Encoder/Decoder

Base64 encoding converts binary data to ASCII text using 64 characters (A-Z, a-z, 0-9, +, /). It increases size by ~33%. Used for embedding images in HTML, email attachments, and data URLs. Padding uses = character.

Encode text to Base64 or decode Base64 to text. Supports URL-safe encoding and Unicode characters. Free online Base64 converter.

Text to Encode

How to Use

  1. 1

    Choose encode or decode

    Select Encode to convert text/data to Base64, or Decode to convert Base64 back to original text

  2. 2

    Enter your input

    Type or paste the text you want to encode, or paste a Base64 string to decode

  3. 3

    View the result

    See the encoded or decoded output displayed instantly in real-time

  4. 4

    Copy result

    Click the copy button to copy the Base64 string or decoded text to your clipboard

Frequently Asked Questions

What is Base64 encoding?
Base64 is a binary-to-text encoding scheme that converts binary data into ASCII characters using 64 characters (A-Z, a-z, 0-9, +, /). It increases data size by ~33% but allows binary data to be safely transmitted through text-only channels like email or JSON.
Why use Base64 encoding?
Base64 is used to: embed images in HTML/CSS (data URLs), transmit binary data in JSON/XML, encode email attachments (MIME), store binary data in text-only databases, and pass data through URLs. It ensures binary data survives text-based transmission without corruption.
Is Base64 encoding secure?
No, Base64 is encoding, not encryption. Anyone can decode Base64 data—it provides no security. It is merely a format conversion. Never use Base64 to "hide" sensitive data. For security, use proper encryption (AES, RSA) and then optionally Base64 encode the encrypted output.
What is the difference between Base64 and Base64URL?
Standard Base64 uses '+' and '/' characters, which have special meanings in URLs. Base64URL replaces these with '-' and '_' to be URL-safe without escaping. It also typically omits padding '=' characters. Use Base64URL for data in URLs, filenames, or query parameters.
How much does Base64 increase file size?
Base64 increases data size by approximately 33% (4 characters for every 3 bytes of input). This is because 3 bytes (24 bits) are encoded as 4 Base64 characters (6 bits each). A 1 MB file becomes ~1.33 MB when Base64 encoded.

Related Tools