Base64 Encode / Decode
Encode and decode Base64 and Base64URL strings online. Toggle between standard Base64 and URL-safe Base64URL with real-time conversion.
How to Use Base64 Encode / Decode
- 1Select "Encode" or "Decode" mode using the toggle.
- 2Choose between Base64 and Base64URL variant.
- 3Type or paste your input — the result updates in real time.
- 4Click "Copy" to copy the result to your clipboard.
Frequently Asked Questions
What is Base64 encoding?
Base64 is a binary-to-text encoding scheme that converts binary data into a string of printable ASCII characters. It is widely used in email attachments, data URLs, and HTTP Basic Authentication.
What is the difference between Base64 and Base64URL?
Base64URL is a URL-safe variant that replaces "+" with "-" and "/" with "_", and omits padding "=" characters. It is used in JWTs, URL parameters, and file names where standard Base64 characters would cause issues.
Does Base64 encrypt my data?
No. Base64 is an encoding scheme, not encryption. Anyone can decode a Base64 string without a key. Do not use it to protect sensitive data.
Why does Base64 output end with "="?
Base64 uses padding characters ("=") to ensure the output length is a multiple of 4. You may see one or two "=" characters at the end. Base64URL omits this padding.
Related Tools
URL Encode / Decode
Encode and decode URLs online. Percent-encoding and decoding for query strings.
JWT Debugger
Decode, inspect and verify JSON Web Tokens. View claims with OIDC descriptions, verify signatures with HS256/RS256/ES256, and auto-fetch public keys from OIDC issuers.
HTML Entity Encode / Decode
Encode and decode HTML entities online. Escape and unescape HTML characters.