Percent-encode text for safe use in a URL, or decode percent-encoded text back to plain text.
URLs can only safely contain a limited set of characters. Spaces, ampersands, question marks, and other reserved or non-ASCII characters have to be replaced with a percent sign followed by their hex byte value (like %20 for a space) so they don't get misread as part of the URL's structure.
This tool encodes a single value (like a query parameter) the way encodeURIComponent does — it escapes characters such as &, ?, and / that have special meaning in a URL. Encoding an entire URL at once uses a slightly different rule set that leaves those structural characters alone.
Encoding the text https://example.com/search?q=hello world with the component method gives https%3A%2F%2Fexample.com%2Fsearch%3Fq%3Dhello%20world. The colon, slashes, question mark and equals sign become percent codes, and the space becomes %20. Paste the encoded text into the decoder and you get the original back.
Encode only the value that goes into a query string, not the entire address, or the slashes and colons will be changed. Use the component method for a single value and the full-URL method for a whole address. Spaces can appear as %20 or + depending on context, and non-English letters become multi-byte sequences such as %C3%A9 for é. Encoding is not encryption: anyone can decode it.
You might also need: IP Subnet Calculator, Bandwidth Calculator, Base64 Encode / Decode, Binary Calculator.
Building query strings by hand, debugging a URL that looks garbled, or passing text with spaces or special characters (like search terms) as part of a link.
In query strings (the part after "?"), a "+" traditionally represents a space, a convention from HTML form submission. This decoder treats a literal "+" the same way; use %20 if you specifically mean a plus sign.
Pick another tool to jump straight to it.