URL Encoder / Decoder

Encode or decode URLs and query strings instantly. Runs in your browser.

Method:

About This Tool

URL encoding converts special characters into percent-encoded format so they can be safely included in URLs. For example, spaces become %20, ampersands become %26, and non-ASCII characters are converted to UTF-8 byte sequences.

Component mode encodes/decodes individual values (query parameters, path segments). Full URI mode preserves URL structure characters like :, /, ?, and #.

Everything runs locally in your browser. Nothing is sent to any server.

Frequently Asked Questions

What is URL encoding?

URL encoding (percent-encoding) replaces unsafe characters with a % followed by two hexadecimal digits. This ensures URLs are transmitted correctly across the internet.

When should I use Component vs Full URI?

Use Component mode for individual values like search terms or form data. Use Full URI mode when you want to encode a complete URL while preserving its structure (protocol, slashes, colons).

Is my data secure?

Yes. This tool runs entirely in your browser using JavaScript. No data is sent to any server, stored, or logged.

How to Use URL Encoding

Paste a URL or text into the input, select Encode or Decode, and choose the mode — Component (for query parameter values) or Full URI (for complete URLs). The tool converts special characters to their percent-encoded equivalents and back.

Why URL Encoding Exists

URLs can only contain a limited set of ASCII characters. Spaces, accented characters, ampersands, equals signs, and many other symbols must be percent-encoded (like %20 for a space) to be valid in a URL. Forgetting to encode query parameters is one of the most common sources of broken links and API errors.

Common Use Cases

Pro Tip

For binary-to-text encoding, try our Base64 Encoder/Decoder.