Base64 Encoder and Decoder for Text and Files

Encode text or a file as Base64, or decode a Base64 string to text. Copy the result directly from your browser. Base64 is encoding, not encryption.

Encode text or a file as Base64, or decode a Base64 string to text. Copy the result directly from your browser. Base64 is encoding, not encryption.

What Base64 encoding does

Base64 converts bytes into printable text using a 64-character alphabet. It is useful when an API field, text-only configuration, or data URI needs a text representation of binary data. It changes representation, not confidentiality.

When to use a Base64 encoder

Prepare a text-only payload

Encode a short value when an API field, configuration, or test fixture expects text instead of raw bytes.

Inspect encoded text

Decode a Base64 value from a log or request to review its readable contents while troubleshooting an integration.

How to encode and decode Base64

Paste plain text and choose Encode, or paste a Base64 string and choose Decode. In Encode mode, select a file to read it in your browser and copy its Base64 payload. Decoding here returns readable text only; it does not recreate a downloadable binary file.

Common Base64 tasks

Test an API request

Encode a sample such as “Hello” for a mock request, then decode a response value to compare it.

Prepare file data

Encode a small image or document locally when a development tool asks for a Base64 payload; add a data-URI prefix yourself if required.

Tips for accurate Base64 results

Do not treat it as encryption

Base64 is reversible. Do not use it to protect passwords, tokens, or private files.

Check the input mode

Choose Decode for a Base64 string and Encode for plain text or a file; review the complete result before copying.

Plan for larger output

Base64 is about one-third larger than the original bytes, so large files create long strings and use browser memory.

Browser support

Text and file processing use browser encoding and FileReader APIs, so processing stays in the page. Use a current browser; clipboard access may require permission, and large files depend on available memory.

What to check before using the result

Base64 is reversible encoding, not encryption. File input is encoded as a string; decoding here produces text and does not restore a downloadable binary file. Very large inputs depend on available browser memory.

Frequently Asked Questions

Does Base64 encrypt my text?
No. It is reversible encoding, so anyone with the string can decode it. Use encryption and access controls when data must remain private.
Can this tool turn decoded Base64 back into a file?
This page decodes Base64 to text; it does not create a downloadable binary file. Use a binary-capable decoder for images, PDFs, or other files.
Why is encoded output larger?
Base64 represents every three input bytes with four text characters, plus padding when needed. The result is roughly one-third larger.
How is Unicode text encoded?
Text is encoded as UTF-8 bytes before Base64 conversion. For example, the text `Hello` encodes as `SGVsbG8=`.
What does the `=` at the end mean?
It is Base64 padding used when the final byte group is incomplete. Keep the trailing `=` characters when you need the complete encoded value.
Why can decoded Base64 look like unreadable text?
Base64 can represent any bytes, including binary file data that is not text. This tool displays decoded output as text, so binary bytes may look garbled and are not restored as a downloadable file.

Related Tools