Skip to main content
ToolsBay

Runs in your browser — nothing is uploaded · verify

URL Encoder & Decoder — free, and it runs in your browser

Percent-encode or decode URLs and query string values.

  • Encodes and decodes in the same place, so you can check a value survives the round trip.
  • Both variants: full-component encoding, and the looser whole-URL form.
  • Fixes the parameters that break a redirect because a slash was not escaped.

Plain string

Tab indents · Esc then Tab to leave1 line

Percent-encoded

1 line
  • 70 tools

    Free, with no account and no watermark

  • 0 bytes

    Of your files or text uploaded — this tool runs in the tab

  • No queue

    The work happens in this tab, not in a line behind other users

Three steps, nothing to install

URL Encoder & Decoder in three steps

  1. TEXT123456Paste it in — it never leaves the tab

    Paste the value

    A search term, a redirect target, a whole URL — whatever you need escaped or read back.

  2. TEXTENCODEDConverted on your own device

    Encode or decode it

    Choose whether you are escaping a single component or a complete URL, since the two escape different characters.

  3. Copy ENCODED

    Copy it out

    Ready to drop into a link, a config file or a test.

Why use URL Encoder & Decoder

  • Component or whole URL

    Encoding a full URL escapes slashes and colons and breaks it; encoding a component leaves them and breaks the query string. Both are offered because the right answer depends on which you have.

  • Encoded as UTF-8

    Characters outside ASCII are encoded byte by byte as UTF-8, so é becomes %C3%A9, the form servers expect.

  • Your text stays in the page

    What you paste is not transmitted or stored, so an API response full of customer records, a token or an internal query never leaves your machine.

Frequently asked questions

Encode value escapes everything unsafe including / ? & = # — use it for a single query parameter value. Encode whole URL leaves the structural characters intact so the address still works — use it when you have a complete URL containing spaces or accents.

Percent-encoding, and which function to use

URLs may only contain a restricted set of characters. Everything else — spaces, accented letters, most punctuation — has to be written as a percent sign followed by the hexadecimal value of each UTF-8 byte. A space becomes %20, and é becomes %C3%A9 because it is two bytes in UTF-8.

The common mistake is escaping the wrong amount. Escaping a whole URL with the aggressive rule turns https://example.com into https%3A%2F%2Fexample.com, which is no longer a link. Escaping a single parameter value with the permissive rule leaves an & inside the value intact, which splits it into two parameters and silently corrupts the data.

The practical rule

  • Building a query string from user input? Escape each value with the aggressive rule, then join them with & and = yourself.
  • Have a finished URL containing spaces or non-ASCII? Use the whole-URL rule, which leaves the structure alone.

To take a URL apart and inspect its parameters, use the URL parser. For escaping text destined for HTML rather than a URL, use the HTML entity encoder.

  • URL Parser

    Break a URL into its protocol, host, path and query parameters.

  • Base64 Encoder & Decoder

    Encode text to Base64 or decode it back, with full Unicode support.

  • HTML Entity Encoder

    Escape characters to HTML entities, or decode entities back to text.

  • JWT Decoder

    Decode a JSON Web Token to inspect its header, payload and expiry.

  • Hash Generator

    Generate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 digests of any text.

Related guides

More tools

70 tools, none of which want your file

Everything this tool does happens in the page you are looking at. No account, no upload, no watermark.