Private URL encoding tool

URL Encoder / Decoder

Encode text for a URL component or decode percent-encoded text back into readable Unicode characters.

Your text stays in your browser. Encoding and decoding happen locally.

What is URL encoding?

URLs reserve characters such as question marks, ampersands, slashes, hashes, and equals signs for structure. Percent-encoding represents text as UTF-8 bytes written with percent sequences so spaces, Unicode, punctuation, and reserved characters can safely occupy a URL component.

URL components versus complete URLs

This tool uses component encoding, the browser behavior behind encodeURIComponent. It is appropriate for a query value, path segment, or fragment value. Encoding an entire URL this way also encodes its separators.

Common uses

Encode search terms, redirect targets, filenames, campaign values, API parameters, or text embedded in a query string.

Why decoding can fail

Every percent sign must be followed by two hexadecimal digits, and the resulting bytes must form valid UTF-8.

Frequently Asked Questions

It applies component encoding to arbitrary text, which is appropriate for a query value or path segment rather than preserving URL separators.

Malformed percent sequences or invalid UTF-8 bytes cannot be decoded safely, so the tool reports an error instead of returning partial text.

Component encoding represents spaces as %20. A plus sign is a separate convention used by form-encoded query strings and is not automatically treated as a space here.