Free · No sign-up · Runs in your browser

URL Encoder & Decoder

Percent-encode text so it’s safe in URLs and query strings, or decode an encoded URL back to readable text.

Input

Result

How to use the URL Encoder / Decoder

  1. 1

    Paste the text or URL into the input box.

  2. 2

    Click Encode to make it URL-safe, or Decode to read an encoded URL.

  3. 3

    Copy the result into your link, API call or query string.

Frequently asked questions

What is URL encoding?

URL (percent) encoding replaces characters that aren’t allowed in URLs — like spaces, &, ? and non-English letters — with % followed by their hex code, for example a space becomes %20.

When do I need to encode a URL?

Whenever you put user text into a query string or path — search terms, redirect URLs, email addresses — so characters like & and = don’t break the URL.

Which characters are encoded?

Everything except letters, digits and - _ . ! ~ * ' ( ). This matches JavaScript’s encodeURIComponent, the right choice for query-string values.