Base64 Encode & Decode Online: Free, Private
Need to base64 encode a string or base64 decode a token? Type or paste text and this online tool converts it live as you type (UTF-8 safe both ways, with a URL-safe alphabet option) and nothing ever leaves your browser.
Base64 Encoder & Decoder
Built for developers who need a quick token, header or blob encoded or decoded, or an image turned into a data URL. Fully client-side: no network calls with your data, no storage.
Output
Pick an image or drop it here
PNG, JPG, GIF, WebP or SVG. Read locally in your browser: nothing is uploaded.
Output
How to use:
- Choose Encode to turn text into Base64, or Decode to turn Base64 back into readable text
- Output updates live as you type: copy it, or hit "Use as input" to flip the result back into the input box
- Any Unicode works when encoding (emoji, accents, CJK); it's UTF-8 encoded first, per the standard
- Decoding is forgiving: spaces and line breaks are ignored,
-/_are accepted as+//, missing=padding is fine, anddata:...;base64,prefixes are stripped automatically - Tick URL-safe alphabet for Base64 that can sit inside URLs and filenames unchanged (e.g. JWT-style, no padding)
- Switch to Image to turn a picture file (PNG, JPG, GIF, WebP or SVG) into a ready-to-use data URL plus raw Base64: pick or drop the file, and it is read locally in your browser, never uploaded. Files over about 5 MB get a size warning, since data URLs that big can bloat pages
Everything runs in your browser: no network calls with your data, no analytics on your input, nothing stored.
Frequently Asked Questions
How do I encode text to Base64?
Paste your text into the input box with the Encode mode selected: the Base64 output appears live as you type. Any Unicode works (emoji, accents, CJK), because the text is UTF-8 encoded first, per the standard.
How do I decode Base64?
Switch the mode to Decode, paste the Base64 string, and the readable text appears instantly. Decoding is forgiving: spaces and line breaks are ignored, missing = padding is fine, and data:…;base64, prefixes are stripped automatically.
What is URL-safe Base64?
URL-safe Base64 replaces + and / with - and _, so the string can sit unchanged inside URLs, filenames and cookies. Tick the URL-safe alphabet option to produce it; the tool also accepts either alphabet when decoding.
How do I turn an image into Base64?
Switch the tool to Image mode, then pick or drop a PNG, JPG, GIF, WebP or SVG file. You get a complete data URL (data:image/png;base64,...) that works directly in an <img src> or CSS url(), plus the raw Base64 payload on its own. The file is read locally with the browser's FileReader: nothing is uploaded anywhere. Files over about 5 MB show a size warning, since data URLs that big can bloat pages.