Free Online Calculator

URL Encode / Decode

Percent-encode or decode URLs, query values and text — instantly in your browser.

Last updated: Free, no sign-up Private — runs in your browser

Quick answer: what is URL encoding?

URL encoding replaces unsafe characters with a % and two hexadecimal digits so they can travel safely in a web address. “hello world & more” becomes hello%20world%20%26%20more; a space is %20 and an ampersand is %26.

Overview of the URL Encode / Decode Tool

URLs may only contain a limited set of characters. Spaces, symbols and non-English letters must be percent-encoded — written as % followed by the byte's hexadecimal value in UTF-8. This tool encodes and decodes as you type, with three modes: encode a single value or query parameter, encode a whole URL while keeping its structure, and decode.

Developers, marketers and SEO professionals use it to build query strings, debug tracking links, read encoded URLs in analytics and handle Hindi or other non-Latin text in addresses. For binary-safe text encoding see the Base64 Encode / Decode.

How URL Encoding Works

The browser's built-in functions do the work, so results match what browsers and JavaScript produce.

  1. The text is converted to UTF-8 bytes.
  2. Characters that are not allowed are replaced by % plus the byte value in hex (é becomes %C3%A9; Hindi letters use three bytes each).
  3. Component mode (encodeURIComponent) also encodes reserved characters such as / ? & = # so a value cannot break a URL.
  4. Whole-URL mode (encodeURI) keeps those reserved characters so the URL stays valid.
  5. Decoding turns each %XX back into its byte and reads the UTF-8; the “+ as space” option handles form-encoded data.
é → UTF-8 bytes C3 A9 → %C3%A9
encodeURIComponent vs encodeURI
FunctionLeaves unencodedUse for
encodeURIComponentA–Z a–z 0–9 - _ . ! ~ * ' ( )A single value, such as a query parameter
encodeURIEverything above plus ; , / ? : @ & = + $ #A complete URL
Common characters and their percent-encoding
CharacterEncodedCharacterEncoded
space%20 (or + in forms)/%2F
!%21?%3F
#%23@%40
$%24&%26
%%25=%3D
+%2B:%3A
,%2C;%3B
é%C3%A9ह%E0%A4%B9

When to Use Which Mode

Use component mode for anything you put inside a URL — a search term, a redirect address or a tracking value. Use whole-URL mode to clean up a full address that contains spaces or non-English characters. Never encode an already-encoded string twice, or %20 becomes %2520.

URL Encode / Decode — Frequently Asked Questions

What is URL encoding?

A way of writing unsafe characters in a URL as % plus two hexadecimal digits, so the address is valid and unambiguous.

How do I encode a URL?

Paste the text, choose an encoding mode and the encoded result appears immediately.

What is the difference between encodeURI and encodeURIComponent?

encodeURI keeps characters that structure a URL (: / ? # & =); encodeURIComponent encodes them too, which is right for a single value.

What is %20?

The encoding of a space. In form data a space is sometimes written as +.

How do I decode a URL?

Choose the decode mode and paste the encoded text. Tick “+ as space” for form-encoded strings.

Why do I get a decoding error?

The text has a % that is not followed by two hex digits, or the bytes are not valid UTF-8.

Does it support Hindi and other languages?

Yes. Text is encoded as UTF-8, so Hindi, Arabic, Chinese and emoji work.

What is double encoding?

Encoding an already-encoded string, which turns %20 into %2520. Decode once before encoding again.

Is URL encoding the same as encryption?

No. It is a reversible formatting step with no secrecy.

Is my data stored?

No. Everything runs in your browser.

More Free Calculators You May Need

Need a custom calculator or tool on your website?

Our team designs and develops fast, SEO-ready websites and web tools. Tell us what you need.

Call Us WhatsApp

Get a Free Quote

Tell us a bit about your project — we'll get back to you shortly.

5 + 9 =
Call WhatsApp