Base64 encoder & decoder.
Convert text, images and files to Base64 and back. Supports UTF-8, URL-safe Base64 and data URIs — all processed locally.
About this base64 encoder
Base64 represents binary data as plain text so it can travel safely in JSON, email, HTML and CSS. This tool encodes any text using UTF-8 (so emojis and non-English characters work), decodes Base64 back to readable text, and recognises PNG, JPG, GIF and WebP images to show a preview you can download.
Use “File → Base64” to create a data URI for embedding small icons in CSS or HTML, and URL-safe mode for tokens used in links and JWTs.
How to use it
- Type text and press Encode, or paste Base64 and press Decode.
- Turn on URL-safe mode for tokens used in links.
- Use “File → Base64” to turn an image or file into a data URI.
- Copy the result or download a decoded image.
Frequently asked questions
Is Base64 encryption?+
No. Base64 is an encoding, not encryption. Anyone can decode it, so never use it to hide passwords.
Why does Base64 make files larger?+
Base64 uses 4 characters for every 3 bytes, so encoded data is about 33% bigger than the original.
Are my files uploaded?+
No. Encoding and decoding run entirely in your browser.
Useful tools for what comes next.
JSON formatter
Beautify, minify and validate JSON with exact error positions.
Open tool ↗ IMAGE TOOLSImage compressor
Shrink JPG, PNG and WebP files in a batch, with quality and resize control.
Open tool ↗ DEVELOPER TOOLSNumber base converter
Convert binary, decimal, hex, octal and any base up to 36.
Open tool ↗