Skip to content
Blueate

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.

How to use

How to use the Base64 & URL Encoder / Decoder

  1. Choose a tab: Base64, File, URL or HTML entities.
  2. Paste or type your text (or drop a file). The direction is detected automatically; you can switch it.
  3. Set options such as URL-safe, padding or line wrapping if you need them.
  4. Read the result. Errors name the character and position that is wrong.
  5. Copy the result, swap input and output, or download the decoded file.
Questions
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.

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.