Base64 Encoder/Decoder
Encode text to Base64 or decode Base64 back to text.
By Konstantin Iakovlev · Updated April 2026 · Source: IETF
Result
SGVsbG8sIFdvcmxkIQ==
Details
| Input Characters | 13 |
| Output Characters | 20 |
| Input Size | 13 bytes |
| Output Size | 20 bytes |
Use the Base64 Encoder/Decoder above to calculate your results. Enter your values and see instant results — all calculations run in your browser.
Disclaimer: This calculator is for informational purposes only and does not constitute tax, financial, or legal advice. Results are estimates based on the information you provide and current rates. Always consult a qualified tax professional or financial advisor for advice specific to your situation.
How It Works
Base64 is an encoding scheme that represents binary data using a limited set of printable text characters. The reason it remains everywhere in 2026 is practical: many transport mediums were built to carry text, not arbitrary bytes. Email attachments, web API payloads, and images embedded directly inside HTML documents all lean on it to move binary content through text-only channels without corruption.
Encoding works in fixed groups. Three bytes of input form 24 bits, which split evenly into four 6-bit blocks, and each block maps to one character from the Base64 alphabet of A-Z, a-z, 0-9, plus the symbols + and /. When the input length is not a multiple of three, padding characters (=) fill the gap. Decoding simply runs the chain backward, translating each character into its 6-bit value, regrouping those bits into 8-bit bytes, and reconstructing the original data.
Two details trip people up. First, encoded output runs roughly 33% larger than the source, so it has a real cost in bandwidth and storage that matters at scale. Second, the alphabet is not universal: standard Base64 uses + and /, while the URL-safe variant swaps them for - and _. Mixing the two is one of the most frequent causes of failed decodes in API integrations, so confirm both ends agree on the character set before sending anything across the wire.
Decoding an API Key
- 1 Input: 'U2VjcmV0QVBJS2V5MjAyNkFGVEhJU0lTQ09ERURVU0VSRk9SQVBJIQ=='
- 2 The calculator will process the Base64 string, converting each character back to its 6-bit representation, then grouping these bits into 8-bit bytes. Padding characters ('=') will be removed during this process.
- 3 Result: 'SecretAPIKey2026AFTERTHISISCODEDUSERFORAPI!'
- 4 This decoded string represents a hypothetical API key for a 2026 service. In real-world scenarios, developers often encode API keys or other sensitive data in Base64 before transmitting them in HTTP headers or configuration files to avoid issues with special characters and ensure safe transport.
Source: IETF · Last updated: April 2026
Frequently Asked Questions
What is Base64 encoding used for?
Does Base64 encoding provide security?
Why does Base64 make data larger?
You might also need
Password Strength Checker
Check password strength, entropy, and estimated crack time. Get suggestions for stronger passwords.
IP Subnet Calculator
Calculate network address, broadcast, usable hosts, and wildcard mask from IP and CIDR notation.
Download Time Calculator
Estimate file download time at different connection speeds. Compare across 10Mbps to 1Gbps.