Text, images, or other files up to 5 MB. Files stay in your browser.

Encoded Base64

Enter text or upload a file to see your result.

Move bytes through a text-only format

Base64 represents binary data using text characters. Use it to inspect an encoded response, embed a small file in a text payload, or turn encoded bytes back into a download. Anyone with the encoded value can reverse it; encoding does not protect a password or token.

Base64 encoding is not encryption

How to use Base64 Encoder/Decoder

  1. Choose Encode or Decode.
  2. In Encode mode, enter text or upload a file up to 5 MB. In Decode mode, paste Base64 or a data URL, or upload a Base64 text file up to 8 MB.
  3. Use Auto-update or turn it off and select Process now. Decoded output is limited to 5 MB.
  4. Copy or download the text, or download the decoded image or binary file.

Practical examples

Encode a short UTF-8 message

Input or settings

Hello

Expected result

SGVsbG8=

Choose Encode. The final equals sign is padding, not part of the original message.

Decode a text data URL

Input or settings

data:text/plain;base64,SGVsbG8=

Expected result

Hello

Choose Decode. The prefix describes the data; the characters after the comma contain the Base64 payload.

Text, images, and binary results

Text is encoded as UTF-8. On decoding, valid UTF-8 appears as text; recognized raster images can have a local preview. Other byte sequences remain available as a binary download. A missing text preview does not automatically mean decoding failed.

Encoding uploads accept up to 5 MB; Base64 text uploads for decoding accept up to 8 MB, with a 5 MB decoded-byte limit. Base64 normally needs four characters for every three input bytes, so it increases size by about one third before prefixes or line wrapping.

The decoder accepts supported standard/Base64URL characters and data URLs, but rejects malformed padding or invalid content. An image label in a data URL does not prove the bytes are that image type. Do not open an unknown downloaded file without checking its source.

When this tool helps

  • Inspect Base64 text returned by an API.
  • Convert a small local image or file into an encoded payload.
  • Recover a binary attachment from its encoded representation.

Questions about Base64 Encoder/Decoder

Is Base64 encryption?

No. There is no secret key, and decoding reverses the representation. Never rely on Base64 to hide credentials or personal data.

Why does an image decode into unreadable text or a file?

An image is binary, not prose. Use the image preview when supported, or download the bytes. Arbitrary binary data need not form valid UTF-8.

Should I put a whole large file in JSON this way?

Only if the receiving API expects it and its limits allow it. Base64 grows the payload; a binary upload is often more appropriate for large files.