Base64 Encoder/Decoder
Free online Base64 Encoder/Decoder.
Calculator
How to Use
- Enter the required values
- Click Calculate to see the result
- Review the detailed output
Formula
Encode: 3 bytes -> 4 Base64 chars (6 bits each). Charset: A-Z, a-z, 0-9, +, /. Padding with = if needed. Output is ~33% larger than input.
Example Calculations
Encode Text
Input: Text: Hello, World!
Result: Base64: SGVsbG8sIFdvcmxkIQ==
Decode
Input: Base64: VGhhbmsgeW91IQ==
Result: Text: Thank you!
URL-Safe
Input: Text: data with + and / chars
Result: URL-safe Base64 with - and _ replacements
About This Calculator
Free online base64 encoder/decoder. Calculate instantly in your browser with our easy-to-use tool. No sign-up required.
Our base64 encoder/decoder is free, easy to use, and provides instant results. All calculations are performed in your browser for privacy and speed.
Related Calculators
Frequently Asked Questions
What is Base64?
Encoding converting binary to text using 64 ASCII chars (A-Z, a-z, 0-9, +, /). For text-based protocols.
Is Base64 encryption?
No, it is encoding not encryption. No security provided. Anyone can decode without a key.
Why does Base64 increase size?
~33% larger because 3 binary bytes become 4 ASCII characters. Trade-off for text-safe transmission.
Encode text to Base64?
Convert to UTF-8 bytes, group into 6-bit chunks, map to Base64 chars. Hello = SGVsbG8=.
URL-safe Base64?
Replaces + with -, / with _, removes = padding. Used in JWT tokens and URL parameters.