URL Encoder / Decoder

Convert any text to a percent-encoded URL string, or decode a URL back to plain text. Fast, accurate and fully client-side — nothing is sent to a server.

Result

      
Advertisement

How to use the URL encoder / decoder

  1. Paste or type your text or URL into the box.
  2. Click Encode to convert it to percent-encoded form, or Decode to convert an encoded string back to plain text.
  3. Read the result below and copy it for your project.

What percent-encoding means

URLs can only safely contain a limited set of characters. Spaces, ampersands, question marks, slashes and non-ASCII characters must be converted into percent-encoded sequences before they can appear in a URL. For example, a space becomes %20, an ampersand becomes %26, and a euro sign becomes %E2%82%AC.

This tool uses the browser's built-in encodeURIComponent and decodeURIComponent functions, the same routines browsers and servers use when they build and read URLs. That guarantees the output is exactly what a standards-compliant client would produce.

When encoding is required

ScenarioWhat to encode
Query stringsEncode values before appending them after the ? in a URL.
Form dataEncode user input before sending it in a URL or request body.
API callsEncode path and query parameters so special characters survive.
DebuggingDecode a messy URL to see the original readable text.

Encode vs. decode

Encoding takes human-readable text and makes it safe to place inside a URL. Decoding reverses the process, turning %20 and friends back into the characters they represent. If you decode a string that contains invalid percent sequences, the tool reports an error instead of guessing, so you always know when the input is malformed.

Encoding and query strings

When you build a URL with a query string, only the values need encoding, not the whole address. For example, in https://example.com/search?q=hello+world the value after q= is the encoded part. Encoding the entire URL would turn the :// and / separators into percent codes and break the link, so paste only the portion you want to encode into this tool.

Frequently asked questions

No. Encoding and decoding happen entirely in your browser with JavaScript. Your text never leaves your device.
This tool uses encodeURIComponent, which encodes more characters including & = + / and ?. It is the right choice for encoding a single value such as a query parameter.
Yes, as long as the percent-encoding is valid. If the input contains malformed sequences like a lone %, the tool shows an error.
Yes. Unicode characters are encoded to UTF-8 percent sequences and decoded back to their original form.