URL Encoder / Decoder
Encode and decode URLs and query parameters locally in your browser with encodeURIComponent vs encodeURI modes and live query breakdown.
About this tool
Native encodeURIComponent/decodeURIComponent and encodeURI/decodeURI execute locally in JavaScript, while URLSearchParams counts query parameters safely and malformed percent sequences trigger a clear error badge. Debug webhook callbacks, OAuth redirect_uri values, and signed URLs.
How to use the URL encoder and decoder
- Choose Encode or Decode, then paste your text or URL into the input box.
- Pick the mode: Component for a single value, such as a search term, or Full URI for a whole address.
- Read the output box, which updates with every change.
- Copy the output, or use Swap to take the result back as the input.
Why URLs need encoding
A web address can only contain a limited set of characters. Spaces, accented letters, ampersands and question marks have special meanings in a URL, so they must be written as percent codes. A space becomes %20, an ampersand becomes %26 and é becomes %C3%A9. Encoding makes sure a value passed in a query string is read as one value, not split by the characters around it.
Component mode encodes everything that is not a safe letter or digit, which is right for a single parameter such as a search term. Full URI mode leaves the structure of an address alone, such as the colon, slashes and question mark, so the address still works.
A worked example
The sample address includes a search phrase with spaces, an ampersand inside a category name and an accented letter. In Component mode the search phrase and the category become safe values, so the ampersand inside Home & kitchen no longer ends the parameter early. Decoding the result returns the original text exactly.
- Encode a search term that contains spaces and an ampersand before adding it to a link.
- Decode a tracking link to see the campaign name in plain words.
Who uses a URL encoder
- Developers building links, redirects and API requests with query parameters.
- Marketers checking campaign links with UTM tags.
- Support staff reading encoded links in logs and error reports.
- Students learning how web addresses are built.
- Anyone who needs a link with spaces or symbols to work in an email.
Tips and common mistakes
- Encode each parameter value separately. Encoding a whole address in Component mode also encodes the slashes and colon, which breaks it.
- Plus signs are read as spaces in some form encodings. Check which convention your server expects.
- Decode only what you trust. A decoded value may contain characters that break a page if inserted without escaping.
- Percent codes are case-insensitive, but a consistent case makes links easier to compare.
- Your text stays in your browser. Links you encode here are not sent to our server.
Frequently asked questions
Related browser tools
Base64 Encoder / Decoder
Encode and decode Base64 strings with full UTF-8 and URL-safe (Base64URL) support locally in your browser with zero uploads.
CSV to JSON Converter
Convert CSV, TSV, and semicolon-delimited tables into clean JSON arrays locally in your browser with quoted-comma support and zero uploads.
Hash Generator
Compute SHA-1, SHA-256, SHA-384, and SHA-512 cryptographic digests simultaneously locally in your browser using Web Crypto with zero uploads.