Developer tools
URL Encoder & Decoder
Encode text for use in URLs or decode percent-encoded text safely in your browser.
How to use URL Encoder & Decoder
- Enter a text value or URL component.
- Choose Encode or Decode.
- Copy the result.
This tool uses JavaScript URI-component encoding. It encodes a component, not an entire URL with its separators preserved.
What this tool does
The URL Encoder and Decoder converts text to and from percent-encoding, the format used to place special characters safely inside a web address. Encoding turns a space into %20, an ampersand into %26 and a question mark into %3F. Decoding reverses the process so you can read an encoded link or parameter.
Encode a value, not a whole address
This tool encodes a URL component, such as a search term, a single query parameter value or one path segment. It encodes characters that have a special meaning in addresses, including / ? & = # and :. That is exactly what you want for a value, but if you paste a complete address, the colon and slashes in the protocol will be encoded too and the link will stop working. Encode only the part that should be treated as plain data, then place it in the address yourself.
Where it helps
- Building query strings and campaign parameters that contain spaces or symbols.
- Passing one address inside another, such as a redirect target.
- Reading an unreadable link full of % codes.
- Debugging API requests where a value is being cut off at an ampersand or hash.
Limits and gotchas
- Non-English letters are encoded as UTF-8 sequences, so é becomes %C3%A9.
- A plus sign in form data often means a space, but this tool decodes only percent codes, so a + stays a plus.
- Decoding fails if the text contains a stray % that is not followed by two valid hexadecimal characters.
- Avoid encoding the same value twice. Double-encoding turns %20 into %2520 and usually breaks the link.
Privacy
Encoding and decoding happen in your browser. This tool does not send your text to an AIToolix server.
Common questions
Should a space become %20 or a plus sign?
In a path, use %20. In a query string, many systems accept either, but %20 is the safer choice.
Why did my link break after encoding it?
You most likely encoded the whole address. Encode only the value that needs it.
Does encoding make a link private?
No. Percent-encoding only makes characters safe to transmit. Anyone can decode it.