Base64 & URL Encoder / Decoder
Web tool · Free · Works without an account · Runs on your device
Paste text to encode it to Base64, or paste Base64 to decode it — the tool detects which you mean. It uses UTF-8 so Hindi and emoji survive, supports URL-safe Base64, and also converts files, data URIs, URL percent-encoding and HTML entities, all inside your browser with nothing uploaded.
Type or paste text, or drop a file. It encodes and decodes Base64 with correct UTF-8 (Hindi and emoji included), supports URL-safe Base64, padding and MIME line breaks, turns files into data URIs and back (with an image preview), and also handles URL encoding and HTML entities.
Updated
Everything stays on this device. Text and files are converted in your browser — nothing is uploaded. Remember that Base64 and URL encoding are not encryption: anyone can reverse them.
Drop a file to turn it into Base64
Any file up to 25.0 MB — it never leaves your device. To go the other way, paste Base64 in the Base64 tab.
Component encodes every reserved character — use it for one query value or path piece.
How to use the Base64 & URL Encoder / Decoder
- Choose a tab: Base64, File, URL or HTML entities.
- Paste or type your text (or drop a file). The direction is detected automatically; you can switch it.
- Set options such as URL-safe, padding or line wrapping if you need them.
- Read the result. Errors name the character and position that is wrong.
- Copy the result, swap input and output, or download the decoded file.
- Is my text or file uploaded?
- No. Encoding and decoding happen in your browser on your device and nothing is sent to a server. Base64 is not encryption, though — anyone can decode it, so do not treat Base64 text as a way to protect secrets.
- Why does Base64 of Hindi or emoji look different in other tools?
- Base64 encodes bytes, not letters, so text must first be turned into bytes. This tool always uses UTF-8, which is what web APIs, JSON and JWTs use. Tools that use the older btoa() function in a browser fail or give different output for characters beyond Latin-1, such as नमस्ते or 😀.
- What is URL-safe Base64 (Base64URL)?
- It replaces + with - and / with _ so the text can sit inside a URL or filename without percent-encoding, and it usually drops the = padding. JWTs use it. The decoder accepts either alphabet automatically; mixing both in one string is reported as an error.
- Why does decoding fail with “not a Base64 character”?
- The text contains something outside A–Z, a–z, 0–9, + / (or - _) and =. The message tells you the character and its position. Common causes are spaces inside a URL-encoded string, a stray quote, or pasting plain text that was never Base64.
- How do I turn a Base64 string into an image or file?
- Paste the Base64 or a full data URI (data:image/png;base64,...) and press Decode. The tool detects the file type from its first bytes, shows a preview for images, and offers a download with a sensible extension.
- What is the file size limit?
- Files up to 25 MB can be encoded, and pasted Base64 up to about 40 million characters can be decoded, because everything is held in your browser's memory. Larger inputs get a clear message instead of freezing the page.
- What is the difference between URL encode “component” and “full URI”?
- Component mode encodes every reserved character, including / ? & = #, so it is right for a single query value or path piece. Full URI mode leaves those structural characters alone and only encodes spaces and non-ASCII characters, so a whole address still works.
Also in Developer tools
- Excel ⇄ CSV ⇄ JSON ConverterConvert between Excel, CSV, JSON, XML, SQL, YAML and more, preview, edit and clean the table — in your browser.
- QR & Barcode GeneratorUPI payment, WhatsApp, website, Wi-Fi, contact and event QR codes, plus product barcodes — styled, checked and print-ready.
- Bug ReporterOne click: screenshot, console logs, network requests, browser details and steps — a complete bug report.
- QR & Barcode ScannerScan QR codes and barcodes with your camera or from a photo — open links, UPI and Wi-Fi safely.
- Screen RecorderRecord your screen, a window or a tab with your voice — right in the browser, no install.
- Meeting & Time Zone PlannerFind a meeting time that works across India, the US, UK, Gulf and more — and share it.
Need a tool like this built around your business?
Tell us how it works today. We’ll come back with a clear plan, timeline and estimate — usually within two business days.