Input
Output

Query string parser

About the URL Encoder & Decoder

URLs may only contain a limited set of characters, so spaces, ampersands, question marks and non-ASCII characters must be percent-encoded (for example a space becomes %20). Bytewrench's URL encoder converts text and query parameters to percent-encoded form and decodes them back to readable text.

It mirrors the behaviour of JavaScript's encodeURIComponent/decodeURIComponent, making it perfect for building query strings, debugging redirects and inspecting API requests.

%
Encode & decode

Percent-encode any string or decode an encoded URL back to plain text.

🔗
Query-string friendly

Safely encode parameter values for use in URLs and API calls.

🌐
Unicode aware

Handles UTF-8 characters so international text encodes correctly.

🔒
Runs locally

All encoding happens in your browser with nothing sent to a server.

Frequently asked questions

What is URL encoding?

URL encoding (percent-encoding) replaces characters that aren't allowed in URLs with a percent sign followed by their hex code, e.g. a space becomes %20.

When should I encode a URL?

Encode any value placed into a query string or path segment that may contain spaces, &, ?, =, # or non-ASCII characters, so the URL is parsed correctly.

What's the difference between encodeURI and encodeURIComponent?

encodeURIComponent encodes more characters and is meant for individual parameter values, while encodeURI is for whole URLs and leaves structural characters intact. This tool encodes components.

Is the data uploaded anywhere?

No. Encoding and decoding run entirely in your browser.