Base64 Encode
Convert text or binary data to Base64 encoded string for safe transmission.
Encode text as Base64. The text is converted to UTF-8 first, so accented letters, other alphabets and emoji all encode correctly. Tick URL-safe to use - and _ instead of + and / and drop the = padding, for use in URLs, file names and JWTs, or wrap lines at 76 characters for MIME email. Encoding happens in your browser as you type.
Need the reverse? Base64 Decode
Common use cases
- Encode text for an HTTP header, data URL or API field
- Make URL-safe Base64 for tokens and links
- Prepare Basic authentication values (username:password)
- Check what a string looks like in Base64
How to use
- Type or paste the text to encode.
- Tick URL-safe or line wrapping if you need them.
- Copy the Base64 output.
FAQ
Is Base64 encryption?
No. Base64 only changes how data is written, so anyone can decode it. Don't use it to hide passwords or secrets.
Why is Base64 longer than the original?
Every 3 bytes become 4 characters, so Base64 is about a third larger than the data it encodes.
What is URL-safe Base64?
A variant that uses - and _ in place of + and /, which have special meanings in URLs, and usually leaves off the = padding at the end.
Related tools
- Base64 DecodeDecode Base64 encoded strings back to original text or binary data.
- URL EncodeEncode text for safe use in URLs by converting special characters to percent-encoded format.
- Text to HexConvert text characters to hexadecimal values.
- URL DecodeDecode percent-encoded URLs back to readable text with special characters restored.
- HTML EscapeConvert special HTML characters to their entity equivalents for safe display.
- HTML UnescapeConvert HTML entities back to their original characters for normal text.