Convert text and files to/from Base64 encoding with image preview and data URI support.
Base64 is a binary-to-text encoding scheme that converts binary data into ASCII text. It's commonly used for embedding images, fonts, and files in HTML, CSS, and JSON.
URL-safe encoding replaces + with - and / with _ to make Base64 strings safe for URLs and filenames. Padding = characters are also removed.
Base64 encoding increases data size by approximately 33% (4:3 ratio). This is the trade-off for text-safe binary data transmission.
<img src="data:image/png;base64,iVBORw0KG..." />background-image: url(data:image/svg+xml;base64,PHN2Zy...);{ "file": "SGVsbG8gV29ybGQ=" }Hop to nearby dev utilities without losing context.
Quick steps so you can get results fast.
Type plain text to encode, or paste a Base64 string to decode.
Use URL-safe output for tokens, file names and URLs; use standard Base64 for email, data URIs and most APIs.
Encoding makes the data about a third larger; decoding restores the original text.
Copy the result into your code or request.
Everything you need to know about Base64 Converter.
Answers to the most common devtool questions.
No. Base64 is an encoding that anyone can reverse. Do not use it to hide passwords or secrets.
Use Base64 to Image, which previews the picture and lets you download it.
No. This tool runs in your browser with JavaScript, and what you type or paste is not sent to ToolzStack servers. Page visits are measured with Google Analytics, as described in the Cookie Policy.
Your input stays in the page while it is open. A few tools keep a short history or favourites in the local storage of this browser; you can clear it in the tool or in your browser settings.
Use Report a Bug on the page or the contact form, and include a sample input that shows the problem (remove anything sensitive first).