Base64 Encoder
Encode text to Base64.
About the Base64 Encoder
Base64 encodes binary or text into an ASCII string using A–Z, a–z, 0–9, +, /, and = padding. It is common in data URLs, basic auth headers, email attachments (MIME), and API payloads that must travel through text-only channels.
How to use
- Paste the text you want to encode.
- Generate the Base64 output.
- Copy it into the header, JSON field, or data URL.
- Decode on the other side with a Base64 decoder when you need the original value.
Important: encoding ≠ encryption
Base64 is reversible by design. Anyone can decode it. Do not treat Base64 as a way to hide passwords or private keys.
Typical use cases
- Embedding small images as
data:image/...;base64,... - Moving tokens through systems that break raw binary
- Debugging auth headers that use Base64
FAQ
Why does the string get longer? Base64 expands size by roughly one third because it represents bytes with a less dense alphabet.
What about URL-safe Base64? Some systems replace +// and drop padding. Confirm which variant your API expects.