All free tools

Base64 / URL Encoder

🌐 Global

Encode + decode Base64, Base64URL, URL component, hex.

Input

·

Output (20 chars)

Related free tools

Free, no login. Need a custom version? Talk to us.

About Base64 / URL Encoder · বিস্তারিত

Encodes and decodes text in four formats: standard Base64, URL-safe Base64URL, URL percent-encoding and hexadecimal. Text is converted to UTF-8 bytes first, so Bangla, Arabic and emoji decode back exactly, and the result updates as you type.

Base64 turns bytes into 64 safe characters (A–Z, a–z, 0–9, + and /), which is how binary data travels inside JSON, emails and data URLs. Base64URL is the same idea with - and _ in place of + and / and no = padding, which is the form used in JWT tokens and URL parameters. URL encoding (percent-encoding) is different again: it leaves plain letters alone and writes spaces and special characters as %20, %E0 and so on.

A common trap is that the browser's built-in btoa() fails on any character outside Latin-1. This tool first converts your text to UTF-8 bytes, so a word like সময় becomes valid Base64 and decodes back to the same Bangla text.

How to use it · কীভাবে ব্যবহার করবেন

  1. Choose Encode or Decode

    Encode turns plain text into the chosen format; Decode turns it back.

  2. Pick a format

    Base64, Base64URL, URL component or Hex.

  3. Type or paste

    The output updates live with its length. If the input cannot be decoded, an error message replaces the output.

  4. Copy the result

    Press Copy to put the output on your clipboard.

When it helps · কখন কাজে লাগে

Reading a JWT
Paste the middle part of a token in Base64URL Decode to read its JSON claims while debugging a login.
Building links
URL-encode a search phrase or a redirect address before putting it in a query string, so spaces and & signs do not break the link.
API headers and config
Encode a username:password pair for an HTTP Basic auth header in a test request, or decode a Base64 value from a Kubernetes secret.

Example: Hello, Shomoy!

Encoding "Hello, Shomoy!" as Base64 gives SGVsbG8sIFNob21veSE= (20 characters). Base64URL gives the same without the trailing =. As a URL component it becomes Hello%2C%20Shomoy!, and in hex it is 48656c6c6f2c2053686f6d6f7921.

What you get

  • Four formats: Base64, Base64URL, URL component, hex
  • Encode and decode in both directions
  • UTF-8 aware, so Bangla and emoji round-trip correctly
  • Base64URL decode restores missing = padding automatically
  • Hex decode ignores spaces and other non-hex characters
  • Clear error messages for invalid input

বাংলায়: Base64 এনকোড ও ডিকোড

এই টুলে লেখা Base64, Base64URL, URL এনকোডিং বা হেক্সে রূপান্তর করা যায়, আবার উল্টোটাও করা যায়। লেখা আগে UTF-8-এ নেওয়া হয় বলে বাংলা লেখাও ঠিকঠাক এনকোড হয়ে আবার একই রকম ফিরে আসে। ডেভেলপাররা JWT টোকেন পড়া, লিংকের প্যারামিটার বানানো বা API হেডার তৈরিতে এটা কাজে লাগাতে পারেন। মনে রাখবেন, Base64 কোনো এনক্রিপশন নয়।

বাংলা লেখা কি Base64 করা যায়?

হ্যাঁ। বাংলা লিখে Encode চাপুন, Decode করলে হুবহু একই বাংলা লেখা ফিরে পাবেন।

পাসওয়ার্ড Base64 করে রাখলে কি নিরাপদ?

না। যে কেউ সহজেই ডিকোড করতে পারে। এটা শুধু ডেটা লেখার একটা পদ্ধতি, লুকানোর নয়।

Questions people ask · প্রশ্ন ও উত্তর

Is Base64 a way to encrypt data?

No. Base64 only changes how bytes are written; anyone can decode it in a second. Never use it to hide passwords or personal data.

What is the difference between Base64 and Base64URL?

Base64URL replaces + with - and / with _, and drops the = padding, so the result can sit inside a URL or file name without further escaping. JWTs use Base64URL.

Why does decoding give an error?

Either the input is not valid Base64 (wrong characters or length), or it decodes to bytes that are not UTF-8 text, such as an image. This tool only shows decoded text.

Does it handle Bangla text?

Yes. Text is converted to UTF-8 bytes before encoding and decoded with a strict UTF-8 decoder, so Bangla, Arabic and emoji come back exactly as typed.

When should I use URL encoding instead of Base64?

Use URL encoding when you want a readable value in a link, such as a search term. Use Base64 or Base64URL when you need to carry arbitrary data in a compact, fixed alphabet.

Is my text sent anywhere?

No. Conversion runs in your browser. Your last input and settings are kept in the browser's local storage on this device.

More like this in Free tools. Need a version built for your business? Ask us.