Base64 Encode & Decode
Encode text or files to Base64 and decode Base64 back — privately in your browser. Free online Base64 converter, no upload.
Base64 encode and decode in your browser
Convert text or files to Base64 and back without sending anything to a server. Useful for data URIs, configs, and debugging.
What you can do with it
- Create a data URI
- Encode an image or snippet to Base64 for embedding in HTML or CSS.
- Recover a file from Base64
- Paste Base64 and download the decoded bytes.
How to encode or decode Base64
- Choose Encode or Decode.
- Paste text or encode a file.
- Click Convert, then copy the output or download decoded bytes.
Encode files to Base64 without uploading them
Data URIs, email attachments, and config embeds need Base64. Encoding locally keeps binaries and secrets off public converter sites. Decode the same way to recover a file from a pasted string.
Text vs file workflows
Use text mode for small UTF-8 strings. Use file mode when encoding images or recovering downloaded bytes from a Base64 blob.
Related reading and tools
- JSON Formatter — Pretty-print JSON that contains Base64 fields.
- JWT Decoder — JWTs use Base64URL — decode claims next door.
- Developer tools — Browse the full developer toolkit.