Base64 Encode/Decode (Text/File Support)
Instantly execute Base64 Decode / Base64 Encode in your browser. A Base64 conversion tool capable of converting text, files, and Data URLs.
Suggests the optimal process based on input content.
Advanced Configuraci?n
Advanced Configuraci?n
When displaying as text, it is interpreted as UTF-8. If the original data is in a different character code, the display may be corrupted.
Usage / Examples
Encode Base64
- Set mode to 'Encode' or 'Auto Detect'.
- Paste text into the input field.
- Click Convert to get Base64.
Hello, Base64!
SGVsbG8sIEJhc2U2NCE=
Decode Base64
- Set mode to 'Decode' or 'Auto Detect'.
- Paste Base64 (or Data URL).
- Convert to see text or file result.
VGhpcyBpcyBhIHRleHQgZXhhbXBsZQ==
This is a text example
Separate Data URL
Paste a Data URL to automatically separate the MIME and Base64 body. You can copy and reuse them.
data:text/plain;base64,SGVsbG8=
MIME: text/plain Base64: SGVsbG8=
Notas
If it looks wrong even with 'Display as text (UTF-8)', please download as binary to check.
data:...;base64, follows the Base64 body. It cannot be separated if the header is missing.
Processing may take time if the size is large.
Trivia
- Base64 converts 3 bytes into 4 characters.
- URL-safe Base64 uses - _ instead of + /.
FAQ
We provide a 'Display as text (UTF-8)' mode. For binary data, please switch to 'Descargar as file' to check.
S?. It automatically separates the data:*;base64, header and the Base64 body, and can also display the MIME type.
No. Conversion is completed within the browser and is not uploaded to the server.
S?. Turn on 'Ignore whitespace/newlines' to handle Base64 with newlines from emails or certificates.
S?. Turn on 'Allow URL-safe Base64'.