URL Encoder / Decoder

Percent-encode text for safe use in URLs and query strings, or decode encoded URLs back to readable text.

Developers building query strings and debugging encoded links.

How to use it

  1. Choose encode or decode

    Switch between encoding plain text and decoding an encoded string.

  2. Pick the scope

    Use component encoding for query values, or turn it off to preserve full-URL structure.

  3. Paste and copy

    Enter your text and copy the converted output.

Why use this tool?

URLs can only contain a limited set of characters, so spaces, ampersands, and non-ASCII text must be percent-encoded. Using the wrong function (whole URL vs. a single query value) is a frequent bug — this tool lets you pick the right one.

Common use cases

Building query strings

Safely encode parameter values that contain spaces or symbols.

Debugging links

Decode an encoded URL to read what it actually points to.

API requests

Encode path and query components before sending requests.

Frequently asked questions

Component vs. full-URL encoding?

Component encoding (encodeURIComponent) escapes characters like / ? & = and is for individual values. Full-URL encoding (encodeURI) leaves those intact to preserve the URL structure.

Why does decoding fail sometimes?

A malformed percent sequence (like a lone %) cannot be decoded. Check the input for incomplete escapes.

Is it private?

Yes. All encoding and decoding happens in your browser.

Related tools