URL Encoder and Decoder

Encode and decode URLs and query strings online. Works with spaces, symbols, and non-English letters. Free and private.

About URL Encoder and Decoder

URL Encoder and Decoder is a free online tool that converts special characters in a link into a safe format and converts them back again. It is useful for query strings, API calls, tracking links, and any link that contains spaces, symbols, or non-English letters. Everything runs in your browser, so there is nothing to install.

What Is URL Encoding?

A web address can safely contain only a limited set of characters. Anything else, such as a space, an ampersand, or a Bengali or Arabic letter, has to be written in a special form called percent-encoding. Each unsafe character becomes a percent sign followed by a code. For example, a space becomes %20, and the word café becomes caf%C3%A9. Decoding does the opposite and turns the codes back into readable text.

How to Use URL Encoder and Decoder

  1. Type or paste your text or URL into the Input box.
  2. Choose Component or Full URL mode.
  3. Click Encode to convert the text, or Decode to turn encoded text back into normal text.
  4. Click Copy Result to copy the output.
  5. Use Use result as input if you want to run the result through the tool again, then click Clear to start over.

Component Mode vs Full URL Mode

Component mode encodes almost everything, including the characters that give a URL its structure: : / ? & = #. Use it for a single value, such as a search phrase or a parameter that will be placed inside a link.

Example: a&b=c becomes a%26b%3Dc.

Full URL mode keeps the structure characters as they are and encodes only what would break the address. Use it when you have a complete link that contains spaces or non-English letters.

Example: https://example.com/search?q=hello world becomes https://example.com/search?q=hello%20world.

If you encode a whole URL in Component mode, the slashes and colons are encoded too and the link will no longer work as an address. When in doubt, use Component mode for parts of a link and Full URL mode for the entire link.

Common Encoded Characters

CharacterEncoded
Space%20
#%23
$%24
%%25
&%26
+%2B
/%2F
:%3A
=%3D
?%3F
@%40

These are the codes produced by Component mode.

Features

  • Encode and decode with one click
  • Component mode and Full URL mode
  • Works with Arabic, Bengali, and other languages
  • Clear error message for invalid input
  • Use the result as the new input for repeated conversions
  • One-click copy
  • Free, with no signup, and your text never leaves your browser

When Do You Need URL Encoding?

  • Adding a search phrase or other value to a query string.
  • Building tracking links with UTM parameters that contain spaces or symbols.
  • Passing one URL inside another URL, such as a redirect or a share link.
  • Sending data to an API through a web address.
  • Making links that contain non-English words work correctly.
  • Reading an encoded link by decoding it back to plain text.

Tips

  • Encode only once. Encoding already-encoded text turns %20 into %2520.
  • If decoding shows an error, the text probably contains a stray % that is not followed by a valid code.
  • Test your final link in a browser before using it in a campaign or an application.

Privacy

Encoding and decoding happen in your own browser. The text you enter is not sent to a server and is not stored.

URL Encoder and Decoder FAQ

What is URL encoding?

URL encoding, also called percent-encoding, replaces characters that are not safe in a web address with a percent sign followed by a code. For example, a space becomes %20.

Is this URL encoder and decoder free?

Yes. It is free to use, with no signup, no login, and no limit on how often you use it.

What is the difference between Component and Full URL mode?

Component mode encodes nearly everything, including : / ? & = and #, so it is best for a single value inside a link. Full URL mode keeps those structure characters so a complete address stays valid.

Why are spaces shown as %20?

A space is not allowed in a web address, so it is written as %20, which is the encoded form of a space character.

Why does a plus sign turn into a space when I decode?

In web forms and query strings, a plus sign often stands for a space. In Component mode, this tool treats a plus sign as a space when decoding. If your text uses a literal plus sign, it will be encoded as %2B.

Can I encode Bengali, Arabic, or other non-English text?

Yes. Letters from other languages are converted to their UTF-8 percent-encoded form, and decoding turns them back into the original letters.

Why does Decode show "This text is not valid URL-encoded text"?

This happens when the text has a percent sign that is not followed by two valid hexadecimal characters, or when the encoded sequence is broken. Check the text for a stray % and try again.

Why are some codes like %2F not decoded in Full URL mode?

Full URL mode keeps characters that give a URL its structure, such as / ? & = and #, in their encoded form so the address meaning does not change. Use Component mode if you want every code decoded.

Is my text stored or sent anywhere?

No. The conversion happens in your browser and nothing is uploaded or saved.

Does this tool work on mobile?

Yes. The tool is responsive and works on phones, tablets, and computers.

More Free Tools