Base64 encoder & decoder

Encode text to Base64 or decode Base64 back to plain text. All processing happens in your browser — no data is sent to any server.

Input

Output

What is Base64 encoding?

Base64 is a binary-to-text encoding scheme that represents binary data using 64 printable ASCII characters (A–Z, a–z, 0–9, +, /). It is widely used to encode binary data for transmission over systems that only handle text — such as embedding images in HTML, encoding attachments in emails, or passing binary data in JSON APIs.

When to use Base64

Base64 vs Base64 URL

Standard Base64 uses + and / characters, which have special meaning in URLs. Base64 URL encoding replaces these with - and _ respectively, making it safe to use in query parameters and JWT tokens without URL encoding.

API access

Encode: POST /api/v1/datatools/encode/base64 with body {"input": "your text"}

Decode: POST /api/v1/datatools/decode/base64 with body {"input": "dG9vbHBhZA=="}

Is Base64 a form of encryption? +
No. Base64 is an encoding scheme, not encryption. It can be decoded by anyone with the encoded string and provides no security. Never use Base64 to protect sensitive data — use proper encryption instead.
Why does Base64 output end with = or ==? +
Base64 encodes 3 bytes into 4 characters. If the input is not a multiple of 3 bytes, padding characters (=) are added to make the output length a multiple of 4. One = means 1 byte of padding was needed, == means 2 bytes.
How much larger is Base64 output vs the original? +
Base64 output is approximately 33% larger than the original input. Every 3 bytes of input becomes 4 Base64 characters.