Home / Web & Developer / URL Encode/Decode
🔗 URL Encode/Decode
Encode text to be URL-safe, or decode encoded text.
Last updated: November 2026 · Parameter year: 2026 · Methods and sources: Methodology · Editorial policy
What is URL Encode/Decode?
In URLs, spaces, Turkish letters, and special characters such as &, ?, and = cannot be used as they are; they must be converted to codes that start with a percent sign (for example, %20 for a space). This is called URL encoding (percent-encoding).
This tool encodes text, or decodes encoded text, using JavaScript's encodeURIComponent method. For example, the phrase “çay şeker” becomes “%C3%A7ay%20%C5%9Feker”. It is very useful when preparing query parameter values.
Use it to encode the individual values you will put inside an address, not the whole address; otherwise, characters such as the colon in “https://” will be encoded as well.
How to use
Fill in these fields: Operation, Text. Then press the button; the result appears on the same page and your data never leaves your device.
Formula
encodeURIComponent
Example
a b → a%20b
Worked examples and tips
Example 1: You want to add a word with Turkish characters to a search link. When you choose Encode as the operation and type çay & kahve in the text field, the tool gives %C3%A7ay%20%26%20kahve. The letter Ç turns into a two-byte sequence, the space into %20, and the ampersand into %26. This way the & sign does not start a new parameter in the address bar.
Example 2: A colleague sent you a piece like ara%3Fq%3Dyaz%C4%B1l%C4%B1m and you cannot read what it says. When you set the operation to Decode and paste it, you see the output ara?q=yazılım. The question mark and equals sign come back, and the letter ı in the word yazılım becomes readable too.
Example 3: You need to carry a path as a parameter value. When you encode the text a b/c?d=1, you get a%20b%2Fc%3Fd%3D1. Since even the slash and question mark are converted instead of being preserved, this value can be safely carried as a single piece inside an address.
Tips and common mistakes: The tool encodes a single component, meaning it also converts the https:// part at the start of a full address. So instead of encoding the whole link, encode only the variable part, for example the search word or the parameter value. If you encode a value twice, the % signs also become %25 and the server reads it wrongly; if the result looks strange, undo it once with Decode and check. Keep in mind that some systems use a plus sign for a space, while this tool produces %20.
When to use it? It is useful when preparing links, testing form data, or decoding unreadable addresses in log records.
Frequently asked questions
What about a full address?
Encode only the parameter values.
Related guide
- What Are JSON, Base64 and URL Encoding? Encoding vs Encryption vs Hashing – What do JSON, Base64, URL encoding, HTML entities, SHA and JWT do? Encoding vs encryption vs hashing, with examples that were run and verified.