About the URL Encode / Decode
URLs may only contain a limited set of ASCII characters. Everything else — spaces, &, ?, non-English letters, emoji — must be percent-encoded as %XX bytes. This tool encodes and decodes using the same rules as JavaScript, Java’s URLEncoder (form mode) and most HTTP libraries.
Features
- Component mode (
encodeURIComponent) for parameter values - Full-URL mode (
encodeURI) keeps/?#&= - Form mode encodes spaces as
+ - “Encode everything” mode
- Line-by-line processing
- Helpful errors for malformed sequences
How to use it
- Choose Encode or Decode and the mode.
- Paste the text or URL.
- Copy the result.
Frequently asked questions
Should I use component or full-URL mode?
Use component for individual query values or path segments. Use full URL only on a complete URL whose structure (/?&=#) must be preserved.
Why does a space become + instead of %20?
HTML forms use application/x-www-form-urlencoded, where spaces become +. Java’s URLEncoder follows this rule. Both are valid in query strings.