URL Encoder and Decoder: Guide, Examples and FAQ
Written by Muhammad Sufyan | Last updated: 5 November 2026
What this tool does
The URL Encoder turns special characters in a link into a safe format, such as a space into %20, and decodes them back. It helps when a link contains spaces, symbols or non-English letters.
How to use it, step by step
- Paste the text or link.
- Press Encode or Decode.
- Copy the result into your link or code.
Worked example 1: Quick example
The text "tea & coffee" encodes to tea%20%26%20coffee. Decoding that gives the original text.
Practical tips
- Encode only the part that needs it, such as a query value.
- Do not encode the whole URL twice.
- Test the final link in a browser.
Roman Urdu mein khulasa
URL encoder links mein space aur khaas nishan ko mehfooz format mein badalta hai, jaise space ko %20.
Frequently asked questions
What is percent-encoding?
Replacing unsafe characters with a % and two hex digits.
Why encode a URL?
Some characters have special meaning in links.
What happens if I encode twice?
The % signs become %25 and the link breaks.
Is my text stored?
No.
Related tools
Found a mistake or a wrong result? Please report it. See also our Disclaimer and Editorial Policy.
URL Encoder and Decoder: Complete User Guide
Web addresses can only contain a limited set of characters, so spaces, symbols and non-English letters must be converted into percent codes before they are safe to use in a link. This tool encodes and decodes those values instantly, helping you build working links, API requests and tracking parameters.
How to Use This Tool
- Paste the text, query value or encoded link into the input box.
- Click Encode to make the text safe for a URL, or Decode to turn percent codes back into readable text.
- The converted text replaces the original in the same box. Copy it for your link, API request or spreadsheet.
- If Decode shows an error, the input contains a broken percent code and needs fixing.
Key Features & Practical Examples
Developers, SEO specialists, digital marketers and spreadsheet users all handle links that contain awkward characters. Encoding the values first prevents broken redirects, truncated parameters and confusing error pages for your visitors.
- Percent-encoding made easy. Spaces and special symbols become safe codes that browsers and servers understand.
- Example. Encoding
a b&c=d gives a%20b%26c%3Dd. Decoding that result returns the original text.
- Works with other languages. Urdu, Arabic and accented letters are converted into UTF-8 percent codes, which is what modern websites expect.
- Best for values, not whole links. Encode a single parameter such as a search phrase. Encoding a full address also converts its slashes and colons.
- Tip for marketers. Encode campaign names and search phrases before adding them to tracking links, so analytics tools record the full value correctly.
Frequently Asked Questions (FAQs)
What does %20 mean in a URL?
It is the encoded form of a space character. Other symbols have their own codes, such as %26 for an ampersand.
When should I encode a URL?
Encode any query value that contains spaces, symbols or non-English letters before adding it to a link.
Why do I get an Invalid encoded string error?
Decoding fails when a percent sign is not followed by two valid hexadecimal characters. Remove stray percent signs or fix the code.
Is URL encoding the same as encryption?
No. Encoding only reformats text, and anyone can decode it, so do not use it to protect private information.