Free URL encoder and decoder

Percent-encode or decode any text, and pick the encoding that matches what you are actually building: a single query value, a whole URL, or a form body where a space is a plus sign. Paste a full URL and read its query parameters decoded. Everything runs in your browser, so the token in that URL stays with you.

Encoding
  • ComponentencodeURIComponent. Escapes the reserved characters as well, so / ? & = # + become %2F %3F %26 %3D %23 %2B. Use it on one query value or one path segment.
  • Full URIencodeURI. Leaves the characters that hold a URL together (: / ? & = # @) untouched and escapes only spaces and other unsafe bytes. Use it on a whole URL.
  • Formapplication/x-www-form-urlencoded. Same as component, except a space becomes + instead of %20. This is what an HTML form posts and what URLSearchParams writes.
54 characters
76 characters

Copied to clipboard

How the URL encoder and decoder works

  • 01

    Pick a direction and an encoding

    Encode or decode, then choose component encoding for one value, full URI encoding for a whole URL, or form encoding when a space has to become a plus sign.

  • 02

    Convert on your device

    The conversion happens in the page as you type, using the same JavaScript functions your own code would call. A broken percent escape is flagged with the character it starts at.

  • 03

    Copy it, or take a URL apart

    Copy the result with one click, or paste a whole URL into the parser to see its scheme, host, path, and each query parameter decoded.

Private by design: nothing leaves your browser

The URLs people need to decode are rarely boring ones. They carry API keys, session tokens, password-reset links, signed download links, and internal hostnames. Pasting one of those into a site that posts it to a backend gives the URL away, so this tool never sends it anywhere:

  • 01

    100% client-side

    Encoding and decoding use encodeURIComponent, encodeURI, and decodeURIComponent, which are built into your browser. Parsing uses the native URL object. No network request is made while you type.

  • 02

    Nothing stored or logged

    There is no account and no history. What you paste lives in the page's memory and is gone when you reload, so a signed link you decoded here is not sitting in anyone's access log.

  • 03

    The same functions your code calls

    The result matches what your own runtime produces, because it comes from the same functions. Form mode follows the WHATWG urlencoded serializer, which is what URLSearchParams and an HTML form both use.

Which encoding to pick

  1. Component encoding for a single value you are dropping into a URL. It escapes / ? & = #, so a value containing a slash cannot break out and become part of the path.
  2. Full URI encoding when you already hold a complete URL and only want to clean up spaces and other unsafe characters. It leaves the structural characters alone.
  3. Form encoding for a request body sent as application/x-www-form-urlencoded, and for query strings written by URLSearchParams. A space becomes + rather than %20.
  4. When you decode, use the mode the value was written with. Decoding a form-encoded value in component mode turns every space back into a literal plus sign, which is a common way a search query comes back wrong.

Built for developers and technical teams

Anyone who has to read a URL that a machine wrote. BlockSurvey takes the same position on research data with zero-knowledge surveys, where responses are encrypted before they ever reach a server.

  • 01

    Developers

    Work out why a query parameter arrived double-encoded, or build a redirect URL that survives being nested inside another one.

  • 02

    Security & IT teams

    Decode an obfuscated link from a phishing report or a proxy log to see where it really points, without handing the URL to a third-party site while you do it.

  • 03

    Marketing & analytics

    Read the UTM parameters on a campaign link and find the stray space that broke attribution.

Building something that handles sensitive data?

BlockSurvey runs on zero-knowledge surveys, so the responses you collect are never sold or mined. Responses are encrypted on the respondent's device, so the server stores nothing readable.

Frequently Asked Questions

Yes, completely free, with no sign-up and no limit on how much text you convert. There is no paid tier of this tool to upgrade to.
Scripts are blocked. This site won’t work properly. If you’re using Brave, click the Shields icon and turn off Block scripts. Otherwise disable your ad blocker for this site.