URL Encoder
Encode and decode special URL characters, percent-encoded query strings, and URI components.
How to Use URL Encoder
- 1Step 1
Paste your raw text or encoded URL string into the input box.
- 2Step 2
Select your operation mode: Encode or Decode.
- 3Step 3
Choose encoding scope: encodeURIComponent (query params) or encodeURI (full URLs).
- 4Step 4
Inspect the result and click Copy to send the converted URL string to your clipboard.
Technical Specification & Client Security
Encoding and decoding execute natively via JavaScript's encodeURIComponent, encodeURI, and decodeURIComponent APIs with UTF-8 byte sequence validation. Malformed percent sequences trigger clear inline diagnostics without throwing uncaught runtime exceptions.
Input & Output Transformation Examples
hello world & foo=bar
hello%20world%20%26%20foo%3Dbar
https%3A%2F%2Fbitsmith.online%2Ftools%3Fquery%3Dtest%20case
https://bitsmith.online/tools?query=test case
Frequently Asked Questions
What is the difference between encodeURI and encodeURIComponent?
encodeURI preserves protocol and domain separators (like :, /, ?, #) suitable for full web addresses, whereas encodeURIComponent escapes those characters to safely embed values inside query string parameters.
How does the decoder handle malformed sequences like %ZZ?
The decoder catches invalid URI errors and displays an informative error badge showing the exact malformed character sequence.
Does URL encoding support emojis and Unicode?
Yes. Multi-byte UTF-8 characters and emojis are properly converted into their constituent percent-encoded bytes (such as emoji symbols becoming %F0%9F%99%82).