Browser-based

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.

??? server transmission (browser processing) Data URL support UTF-8 text display
Mode
?? Type

Suggests the optimal process based on input content.

?? (Text)
Ctrl/⌘ + Enter to convert
* ?? content is not sent; it is processed within this browser.
??
?? can be copied or downloaded.

Advanced ??

Common
Encode (Text)
Character Encoding
UTF-8
?? Format
MIME
Decode (Display/??)
Decode ?? Handling

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

  1. Set mode to 'Encode' or '?? Detect'.
  2. Paste text into the input field.
  3. Click Convert to get Base64.
??
Hello, Base64!
??
SGVsbG8sIEJhc2U2NCE=

Decode Base64

  1. Set mode to 'Decode' or '?? Detect'.
  2. Paste Base64 (or Data URL).
  3. 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 URL
data:text/plain;base64,SGVsbG8=
Separation ??
MIME: text/plain
Base64: SGVsbG8=

????

If text is corrupted

If it looks wrong even with 'Display as text (UTF-8)', please download as binary to check.

Data URL Format

data:...;base64, follows the Base64 body. It cannot be separated if the header is missing.

Large ??

Processing may take time if the size is large.

Trivia

  • Base64 converts 3 bytes into 4 characters.
  • URL-safe Base64 uses - _ instead of + /.

?? ?? ??

Text is garbled

We provide a 'Display as text (UTF-8)' mode. For binary data, please switch to '???? as file' to check.

Does it support Data URL (data:image/...;base64,)?

?. It automatically separates the data:*;base64, header and the Base64 body, and can also display the MIME type.

Is the file sent?

???. Conversion is completed within the browser and is not uploaded to the server.

Can it decode Base64 with newlines?

?. Turn on 'Ignore whitespace/newlines' to handle Base64 with newlines from emails or certificates.

Does it support Base64URL (- and _)?

?. Turn on 'Allow URL-safe Base64'.