Base64 Encode & Decode
WorkingEncode or decode Base64 text, files and URL-safe values in one local workspace. Free, no signup or input upload. Encoding is not encryption; choose text or byte mode carefully.
Encode or decode Base64 text, files and URL-safe values in one local workspace. Free, no signup or input upload. Encoding is not encryption; choose text or byte mode carefully.
Base64 Encode & Decode
WorkingThis tool is working for the representative inputs recorded in its tests. Processing happens locally; different files, settings and browsers can still have limits. Base64 is encoding, not encryption or compression. Text mode replaces invalid UTF-8; use file mode to retain arbitrary bytes.
Pasted text is read as UTF-8. Choose the matching encode or decode mode below.
Choose a file to preview
File modes preserve bytes. Text and Base64URL modes read UTF-8 with replacement characters for invalid sequences and download TXT.
Validated locally: file type, size and browser support are checked before anything runs
Preparing your file
Reading the file locally and checking that its type and size match what this tool expects. Nothing has been uploaded.
Processing Base64
This conversion runs locally in your browser using native text APIs.
You can leave this tab open in the background — the conversion keeps running on your device, and progress is reported when you come back.
Conversion complete
Your converted file is ready to download.
Choose a file to preview
Run the tool to preview its result
The converted file was assembled in your browser and is released when you leave or reset this page
Something went wrong
The conversion could not be completed. Nothing was uploaded, and no partial file was saved.
This file or browser is not supported
The engine could not process this file in this browser. Nothing was converted or uploaded. Check this tool's limits and try a supported input.
Base64 Converter gives you six explicit workflows: Encode file bytes to Base64, Encode UTF-8 text to Base64, Decode Base64 to a file, Decode Base64 to UTF-8 text, Encode text to Base64URL, and Decode Base64URL to UTF-8 text. File modes preserve arbitrary bytes, while text modes use nonfatal UTF-8 decoding and can insert replacement characters for malformed sequences. You may upload a file or paste text, subject to a 50 MiB limit. A chosen download extension labels decoded bytes; it does not transform or verify their format.
evidence.txt was 36 bytes and was processed in Encode UTF-8 text to Base64 mode without a data URL prefix or line wrapping.
evidence.txt was a 48-byte plain-text Base64 result in the recorded evidence run.
The measured example covers the text-encoding mode only; binary preservation, URL-safe behavior, malformed input, and boundary limits are verified by separate tests.
Encode file bytes to Base64 and Decode Base64 to a file provide the byte-oriented round trip. Text and Base64URL modes deliberately interpret data through UTF-8.
Processing remains nonfatal. Invalid sequences become Unicode replacement characters, so the resulting text can differ from the original byte stream even though an output is produced.
No. The extension only labels the download. The Base64 payload must already contain suitable PNG bytes, and this tool does not validate or convert them into an image.
They apply only to the two standard encoding modes. Decode operations and URL-safe encoding do not use those optional output decorations.
No. It is reversible byte representation and often expands the data. Anyone with the encoded value can decode it, so it does not supply secrecy or authentication.
Last tested , reviewed by Usman Ali.