URL Encoder / Decoder
Encode special characters in URLs using percent-encoding (%20, %26…) or decode them back. Handles full URLs and query string components. Supports both encodeURI (safe for full URLs) and encodeURIComponent (safe for parameter values).
Ctrl+Enter to run · Ctrl+K to switch tools · Recent button shows input history
Let AI do the hard part. Fix broken HTML, convert to email-safe HTML, or clean up any markup in one click — 3 free AI runs per day, no account needed.
Try the AI HTML FixerFAQ
What is the difference between encodeURI and encodeURIComponent?
encodeURI preserves URL structure characters (/, :, ?, #, &) — use it on a full URL. encodeURIComponent encodes everything including those characters — use it on individual query parameter values.
When do I need to URL-encode?
Any time you embed user input in a URL (query params, redirect targets) or pass data in a URL fragment. Unencoded special characters can break the URL structure or cause unexpected behavior.