Base64 Converter
Base64 encodes binary data as ASCII text using a 64-character alphabet. It increases data size by ~33% but makes binary-safe transmission possible over channels that only support text.
1.
Paste your text into the Input panel
2.
Click Encode to convert to Base64, or Decode to reverse it
3.
Copy the result with the Copy button
▸
Encoding credentials in HTTP Basic Auth headers
▸
Embedding small images directly in CSS or HTML
▸
Passing binary data through text-based APIs
▸
Storing binary data in a JSON field
Does Base64 work with binary files?
This tool is designed for text encoding. For binary files like images, use the Image to Base64 tool instead, which handles raw bytes correctly.
Why does Base64 output end with "=="?
Base64 encodes data in 3-byte groups. When the input length is not a multiple of 3, padding characters (=) are added to complete the final group.
Does encoding make data smaller?
No - Base64 increases size by approximately 33% because 3 bytes of binary data become 4 ASCII characters.
Is my text sent to a server?
Encoding and decoding happen entirely in your browser. No data is transmitted to any server.
Can I use this for JWT tokens?
JWT payloads use Base64url encoding (a variant with different characters for + and /). This tool uses standard Base64, so use the JWT Decoder tool for JWT-specific decoding.