URL Encode / Decode
Escape text for URLs, or decode percent-encoded strings back to plain text.
How to encode or decode URLs online in your browser
- 1Paste text into the box.
- 2Pick Encode or Decode.
- 3Copy the result.
When to use URL encoding and decoding
URLs have restrictions on which characters they can contain directly. Characters like spaces, ampersands, question marks, and non-ASCII symbols must be converted before they can travel safely through browsers and servers. URL encoding replaces those problematic characters with a percent sign followed by two hexadecimal digits, such as %20 for a space. URL decoding does the reverse, turning percent-encoded strings back into readable text.
You need this tool whenever you receive a garbled URL with strange symbols and want to read it properly, or when you are building a link that contains special characters and need to make sure it works. Copywriters, developers, and marketers often use it when sharing URLs that contain spaces or symbols in social posts, emails, or documents.
Encode or decode your text in three simple steps
- Paste your text or URL fragment into the input box at the top of the page.
- Click the Encode button to convert plain text into percent-encoded format, or click Decode to reverse the process back to readable text.
- Copy the result from the output area and paste it wherever you need it.
What the output looks like
When you encode text, every special character gets replaced with its percent-encoded equivalent. A space becomes %20, an ampersand becomes %26, and accented letters get converted to their UTF-8 byte sequences. The output is a single continuous string ready to be inserted into a URL parameter or query string.
When you decode, the reverse happens. Percent codes disappear and the original readable characters return. You will see the exact text that was encoded, including spaces, punctuation, and international characters.
What gets encoded and common mistakes to avoid
- Letters, numbers, hyphens, underscores, tildes, and periods are left unchanged because they are considered safe in URLs.
- Everything else gets encoded, including spaces, symbols, and non-ASCII characters.
- Encoding a full URL will encode characters like colons, slashes, and question marks. If you only want to encode a specific parameter value, isolate that portion first.
- Decoding a string that was not percent-encoded will not change it, but attempting to decode a partially encoded string may produce unexpected results.
Your text never leaves your device
This tool runs entirely inside your web browser using JavaScript. When you paste text and click encode or decode, your content is processed on your own computer. Nothing is sent to any server, and no copies are stored anywhere. Once you close or refresh the page, all data is gone. This makes the tool safe to use with sensitive information, private URLs, and proprietary text without worrying about data handling or third-party access.
Frequently asked questions
What is percent-encoding?
Which escaping rules are used?
Is the text saved?
What characters are converted during encoding?
Can I use this to encode a full URL with http://?
What happens if I decode text that was never encoded?
Does this tool work on phones and tablets?
Why does my encoded text look different from what I see in some APIs?
Related tools
Text
Base64 Encode / Decode
Convert text to Base64, or decode Base64 strings back into text.
Text
JSON Formatter
Paste JSON, validate it, and reformat it with clean indentation — or minify it.
Text
Character Counter
Live character count with and without spaces — for tweets, SMS and form limits.
Merge PDF
Combine up to 20 PDFs into a single document, in the order you choose.
Split PDF
Extract single pages, page ranges or custom page lists from a PDF.