URL Encoder & Decoder

Turn text into a URL-safe encoded string, or decode a percent-encoded URL back into readable text — instantly in your browser. Choose Component mode for a single query value, Full URL mode for a whole address, or Form mode for form-style encoding with + for spaces. Free, with no sign-up.

Output:
Input: 0 characters · Output: 0 characters

About This URL Encoder & Decoder

Web addresses look simple, but they only allow a small set of characters. The moment your text contains a space, an & sign, an Urdu word or an emoji, it has to be rewritten in percent-encoding before it can travel in a URL: a space becomes %20, & becomes %26, and each non-English character becomes its UTF-8 bytes written as %XX codes. This free tool converts in both directions — paste ordinary text and click Encode, or paste an encoded string and click Decode to read what it actually says.

Three modes cover the three situations you will meet. Component mode encodes one piece of a URL, such as a search query. Full URL mode encodes a whole address while leaving its structure (://, ?, &) intact. Form mode writes spaces as +, the style HTML forms produce. Everything runs in your browser — nothing is uploaded.

How to Use It

  1. Paste or type your text or encoded URL into the input box.
  2. Choose a mode: Component for one value, Full URL for a whole address, or Form for form-style encoding.
  3. Click Encode to percent-encode the text, or Decode to turn an encoded string back into readable text.
  4. Click Copy Output to copy the result, or Swap to feed the output back in for the opposite conversion.

URL Encoding Examples

Try these in the tool above — encode the text on the left in Component mode, or decode the string on the right:

TextURL-encoded (Component)
hello worldhello%20world
price=Rs 1,500 & taxprice%3DRs%201%2C500%20%26%20tax
Ali Super ToolsAli%20Super%20Tools
100% sure!100%25%20sure!

Notice the last example: the % sign itself is encoded as %25, because % is the escape character — leaving it bare would make the string ambiguous. And a full address encoded as one component, https%3A%2F%2Fexample.com%2Fa%20b, decodes back to https://example.com/a b — which is exactly how redirect parameters and tracking links carry one URL inside another.

Which Mode Should You Use?

  • Component — when the text is a single value inside a URL: a search term, a product name, a file name, a redirect target. Everything that needs encoding is encoded, including / ? & and =.
  • Full URL — when you already have a complete address and only its spaces or non-English characters are the problem. The structure stays untouched, so the link keeps working.
  • Form — when the string will be read as form data (a query string built by an HTML form or a tool that imitates one). Spaces become +, and decoding treats + as a space — while a real plus sign is still written %2B so the two are never confused.

Characters That Never Need Encoding

Letters, digits and the four symbols - _ . ~ are unreserved — safe in every part of a URL — and this tool leaves them exactly as they are. Everything else is either reserved (it has a structural job: : / ? # [ ] @ ! $ & ' ( ) * + , ; =) or unsafe (spaces, quotes, < >, and all non-English text). Reserved characters are fine when they are doing their structural job, but inside a value they must be encoded — that is the whole reason Component mode exists.

Who Is This Tool For?

  • Developers — build query strings, debug redirect parameters, and read the encoded URLs in logs and analytics.
  • Marketers — decode the UTM and campaign links in reports to see the readable text behind the % codes.
  • Students — see exactly how percent-encoding works, character by character, in all three modes.
  • Anyone with a strange link — paste a %20-filled address and read what it really points to before you click it.

Frequently Asked Questions

URL encoding (also called percent-encoding) replaces characters that are not allowed in a web address with a % sign followed by two hexadecimal digits. A space becomes %20, an & sign becomes %26, and a letter like é becomes %C3%A9. It exists because URLs may only contain a limited set of characters, so anything else — spaces, Urdu or Arabic letters, emoji, and symbols that have a special meaning in URLs — has to be written in this safe form.

Paste your text into the input box, pick a mode, and click Encode. Use Component mode when the text is one piece of a URL, such as a search query or a file name — it encodes everything that needs encoding. Use Full URL mode when you have a complete address that just contains spaces or non-English characters — it leaves the ://, ? and & structure intact. Use Form mode when the result will go into a form-style query string, where spaces are written as + signs.

Both can mean a space, but in different places. %20 is the percent-encoding of the space character and works everywhere in a URL. The + sign means a space only inside a query string that was produced by an HTML form (the application/x-www-form-urlencoded format) — in a path, a + is a literal plus sign. This tool's Form mode writes + for spaces and reads it back as a space; Component mode always uses %20.

Paste the encoded text into the input box and click Decode. The readable original appears in the output box — for example, https%3A%2F%2Fexample.com%2Fa%20b decodes back to https://example.com/a b. If the input contains a stray % sign or an incomplete sequence like %ZZ, the tool tells you it is not valid URL encoding instead of showing broken text.

The unreserved characters — letters A to Z and a to z, digits 0 to 9, and the four symbols - _ . ~ — are always safe in a URL and are left untouched by every mode of this tool. Everything else is either reserved (it has a job in URL structure, like ? & = /) or unsafe (spaces, quotes, non-English text) and gets percent-encoded when it appears inside a value.

No. Encoding and decoding happen locally in your browser and nothing is uploaded, stored or logged.

Related Tools