Local browser utility

URL Encoder/Decoder

Encode text with percent-encoding so it is safe inside URLs and query strings, or decode an encoded URL component back to plain text.

Need to decode instead?Switch to the Decode tab to convert an encoded URL back to plain text.

Enter a URL or text to encode

Example: https://www.example.com/search?q=hello world

OutputEncoded URL (percent-encoded)
Your encoded URL appears here.

Processed locally in your browser No data is sent to any server

Examples

Try these examples:

Questions About This Tool

Should I encode an entire URL?

Usually no. Encode the dynamic component, such as a query value, while preserving the URL’s structural separators.

Why is & encoded as %26?

An unencoded ampersand separates query parameters. Encoding keeps it as part of one value.

Why did decoding %G2 fail?

G is not a hexadecimal digit. Every percent escape needs exactly two digits from 0–9 or A–F.

Does + decode to a space?

Not in this component decoder. Plus-as-space belongs to application/x-www-form-urlencoded conventions.