URL Encoder / Decoder

Encode text for use in a URL, or decode a URL back to readable text. 100% free, no signup. Everything runs in your browser.

100% free No sign-up Private by design Works on any device
URL Encoder / DecoderRuns locally

This free URL encoder and decoder converts text into the percent encoded form that URLs require, and turns encoded URLs back into something a human can read. URLs are only allowed to contain a limited set of characters. Spaces, accented letters, ampersands, question marks and anything outside plain ASCII have to be rewritten as percent codes, which is why a space becomes %20 and a comma becomes %2C. Get that wrong and a link breaks, a search parameter gets cut off, or a tracking value arrives mangled. Paste your text, choose whether you are encoding a single value or a whole URL, and the result appears instantly. Everything runs in your browser, so query strings containing tokens or customer data stay on your machine.

How to use

  1. Choose Encode to turn readable text into URL safe form, or Decode to turn percent codes back into text.
  2. Paste your text or URL into the input box. The result updates as you type.
  3. Choose Component mode when you are encoding one value that will sit inside a URL, such as a search term or a parameter. This is what you want most of the time.
  4. Choose Full URL mode when you are encoding an entire address and need the slashes, question mark and ampersands left working.
  5. Press Copy to take the result, or Use result as input to run it through again, which is handy for double encoded strings.
  6. If decoding fails, look for a lone percent sign in your input. A literal percent has to be written as %25.

Why use our url encoder / decoder?

The two modes are the important part. Almost every bug people hit with URL encoding comes from using the wrong one. Encode a whole URL with component mode and the slashes turn into %2F and the link dies. Encode a single search term with full URL mode and an ampersand inside it silently splits your parameter in two. Labelling both clearly, with a recommendation, stops that before it happens.

Decoding gets equal care. Invalid input produces a clear explanation instead of a silent failure, and Unicode is handled properly in both directions, so Arabic, Urdu, Chinese and emoji survive the round trip. Everything runs locally, which matters because query strings often contain session tokens, API keys and personal data that should not be pasted into an unknown website. It sits naturally beside the JSON formatter for reading an API response and the Base64 encoder and decoder for the other encoding you meet every day.

Who is this tool for?

Developers use it constantly while building and debugging. Constructing a query string by hand, working out why a redirect drops half its parameters, or reading a callback URL that arrived triple encoded are all daily jobs. Anyone building an OAuth flow meets encoded redirect URIs immediately, and getting one character wrong there produces an error message that explains nothing.

Marketers hit it with UTM tracking links. A campaign name with a space or an ampersand breaks analytics reporting in ways that are hard to spot until the numbers look wrong. Encoding the value first fixes it. Support staff and QA testers decode long URLs from bug reports to see what a customer actually clicked. Writers and researchers decode search URLs to recover the original query. Anyone who has ever seen %20 scattered through a link and wondered what it said has a use for the decode side of this tool.

Frequently asked questions

What is percent encoding?

It is the rule that lets any character travel safely inside a URL. Each unsafe character is replaced by a percent sign followed by its hexadecimal code, so a space becomes %20. It is also called URL encoding, and the two terms mean the same thing.

What is the difference between the two modes?

Component mode encodes almost everything, including / ? & and =, which is correct when the text is one value going inside a URL. Full URL mode leaves those characters alone so a complete address keeps working. Use Component unless you are encoding a whole URL.

Why does a space sometimes become + instead of %20?

Older HTML form submissions use + for spaces, while standard URL encoding uses %20. Both are widely understood by servers, but %20 is the safer choice and is what this tool produces.

Does it handle Urdu, Arabic, Chinese and emoji?

Yes. Non-Latin scripts and emoji are encoded as UTF-8 and decode back exactly as they went in, which is where a lot of simpler tools quietly corrupt text.

Why does my string fail to decode?

Almost always because it contains a percent sign that is not part of a valid code. A literal percent must be written as %25. Truncated strings copied from a chat message are the other common cause.

Is my URL sent anywhere?

No. Encoding and decoding happen entirely in your browser, so URLs containing tokens, session ids or personal data never leave your device.

What is double encoding?

It is when an already encoded string gets encoded again, so %20 becomes %2520. You will see it when a value passes through two systems that both encode. Decode twice using the Use result as input button to recover the original.

Related tools