URL Encoder & Decoder
Percent-encode URLs and query parameters, or decode encoded strings back to plain text. Supports Component and Full URI modes. Output updates as you type.
This tool percent-encodes and decodes URL strings in your browser. Encoding replaces characters that have special meaning in a URL — spaces, ampersands, question marks — with escape sequences so they survive transmission intact. Both component-level and full-URI encoding are supported.
Plain Text / URL
Encoded URLread-only
Common Percent-Encoded Characters
%20!%21#%23$%24&%26'%27(%28)%29*%2A+%2B,%2C/%2F:%3A;%3B=%3D?%3F@%40[%5B]%5D%%25About this tool
A fast, browser-only URL encoder and decoder with three modes. Encode converts plain text or URLs to their percent-encoded form. Decode converts percent-encoded strings back to plain text. Auto detects which to apply by checking whether the input contains percent-escape sequences.
Two encode scopes are available: Component (encodeURIComponent) encodes all special characters and is ideal for query parameter values and path segments. Full URI (encodeURI) preserves structural URL characters and is suitable for encoding a complete URL. A built-in reference table shows the most common percent-encoded characters at a glance. Use Swap to flip the output back into the input and reverse the operation in one click.
How to use
Choose a mode
Select Encode to convert plain text to a percent-encoded URL, Decode to reverse it, or Auto to let the tool detect which is needed from your input.
Pick the encode scope
In Encode mode, choose Component (encodeURIComponent) for individual values like search terms, or Full URI (encodeURI) when encoding a complete URL without breaking its structure.
Type or paste your input
The encoded or decoded output appears instantly in the right panel as you type. Use the Sample button to load an example URL with spaces and special characters.
Copy or swap
Click Copy to copy the output to your clipboard, or Swap to move the output back into the input and flip the mode — useful for round-trip testing.
At a glance
- Directions
- Percent-encode and decode
- Scopes
- Component-level and full-URI encoding
- Why they differ
- Component encoding escapes reserved characters like / ? & =, whereas full-URI encoding preserves them because they carry structural meaning
- Common use
- Query-string values containing spaces, ampersands or non-ASCII characters
- Privacy
- Runs in your browser
Related tools
Frequently asked questions
Common questions about URL encoding, percent-encoding, and when to use each mode.
Last updated
