loot.tools

URL Encoder/Decoder

Encode and decode URLs, with a mode for single query-string values (encodes every special character) and a mode for whole URLs (keeps : / ? & = # intact). Handles spaces, symbols, and special characters.

Encode or decode URLs. Editing either side updates the other automatically.

Encodes every special character - use for a single query value.
Plain text
Encoded

What is URL encoding?

URL encoding (also called percent-encoding) replaces unsafe characters in URLs with a % followed by two hex digits. For example, a space becomes %20, an ampersand becomes %26, and a forward slash becomes %2F. This is necessary because URLs can only contain a limited set of ASCII characters, and special characters have reserved meanings in URL syntax.

How to use this tool

Paste plain text to encode it for use in a URL, or paste a percent-encoded string to decode it back to readable text. The conversion is instant and bidirectional. Pick Component mode for a single query-string value (it encodes & = ? / and other reserved characters too), or Full URL mode to encode a whole address (it leaves the URL structure intact and only encodes spaces and unicode). Use it when you need to include text with special characters in query strings, path segments, or form data.

When you'd use URL encoding

Encoding query parameter values that contain spaces or special characters. Decoding URLs you've copied from a browser's address bar. Debugging double-encoded URLs where %25 appears instead of actual characters. Preparing text for use in HTTP GET requests.