URL Encode / Decode
Tool guideEncode and decode URL components and full URLs
Input: This tool processes input in your browser. Check in Network (opens in a new tab)
Mode:
Scope:
Keep the plus signs in a search term
Tool guide
Back to workspaceComponent mode escapes punctuation inside one value; Full URL mode preserves reserved characters that can separate parts of an address. Run the workshop-title example to compare the two encodings, then decode the component to check the original text.
How to use it
- Choose Run example to compare component and full URL encoding without replacing your own input.
- To repeat the round trip, choose Encode and Component, paste the workshop title below and select Run.
- Switch to Decode; the previous output becomes the input. Run again to recover the original title, including both plus signs.
Worked example
- Example input
C++ & Rust- Example output
C%2B%2B%20%26%20Rust
Each %2B is one literal plus, %26 is the ampersand, and %20 is a space. The ampersand belongs to the title, not to the query-string syntax.
What to watch for
Component decoding reads percent escapes; it is not a form parser. A raw + can mean space to URLSearchParams. When building a query, pass the original value to searchParams.set, not the encoded result.
Frequently asked question
- Why does Decode fail on a lone percent sign?
- A percent escape needs two hexadecimal digits. To encode a literal percent sign as data, run Encode on %, which gives %25.