Developer & Text Utilities · Free

Base64 & URL Encoder

Encode and decode Base64 and URL text safely, including Urdu and other Unicode text, or convert a small file to a Base64 data URL.

Use the Base64 & URL Encoder

Loading tool…

How to use the Base64 & URL Encoder

  1. Choose Base64 text, URL encode or File to Base64.
  2. Paste your text, or choose a file.
  3. Press Encode or Decode.
  4. Copy the output.

About this tool

Base64 here is UTF-8 safe, so Urdu, Arabic and emoji text encode and decode correctly. URL encoding has two styles: one for a single query value and one that keeps a full web address readable.

Free to use. Your inputs are processed in your browser and are not sent to our servers. Results are for general information; see the disclaimer.

Frequently asked questions

Is Base64 encryption?

No. Base64 only changes how data is written; anyone can decode it. Never use it to protect passwords or private data.

When should I use URL-safe Base64?

When the result goes into a web address or file name, because it avoids the + and / characters.

Does it work with Urdu text?

Yes. Text is encoded as UTF-8 first, so Urdu and other languages decode back exactly.

Base64 and URL encoding: when to use which

Base64 turns binary or text data into plain letters, numbers and a few symbols so it can travel safely through systems that only handle text, such as email, JSON or data URLs in a web page. URL encoding (percent encoding) makes text safe to put in a web address by replacing characters like spaces and ampersands with codes such as %20.

Neither is encryption. Anyone can decode them, so never use Base64 to hide passwords or private data.

Practical tips

  • Use Base64 for embedding a small image or file in text, and for basic authorisation headers.
  • Use URL encoding for query strings, for example a search term that contains spaces or symbols.
  • Base64 makes data about one third larger.
  • Your text is processed in your browser and is not sent to a server.