URL Encoder and Decoder Online — percent encoding, encodeURIComponent, encodeURI
Encode and decode URLs
encodeURIComponent — escapes every reserved character so the output is safe in any URL slot (query, path, fragment).
Encode URLs or decode percent-encoded URLs back to readable form, with two clearly explained modes: Component mode (encodeURIComponent) escapes every reserved character and is the right choice for query-string values like UTM parameters, Google Analytics attribution, hreflang tags, and XML sitemap URLs; Full URL mode (encodeURI) preserves path separators and is meant for entire URLs that already contain protocol and domain. Live mode re-encodes as you type, so you can verify Cyrillic, Chinese, Arabic, or accented characters render correctly inside a URL before you ship. Use it to prepare clean social-media preview URLs, normalize UTM tags across ad campaigns, fix broken hreflang or sitemap entries, and safely embed special characters in API endpoints. A swap button flips between encoded and decoded text in one click, and large query strings are handled without any size cap. Everything runs 100% locally in your browser — your URLs, UTM parameters, and tracking data never leave your device.
Encode query strings and full URLs the right way
Component mode applies encodeURIComponent — the correct choice for individual query parameter values like utm_campaign, search queries, and hash fragments — while Full URL mode applies encodeURI, which preserves the scheme, host, and path separators of an already-formed URL. Inline helper text explains when to use each mode, so you stop second-guessing whether a space should become %20 or +. Live mode re-encodes on every keystroke, perfect for iterating on tracking links and API queries.
Local URL encoding for tracking links and international URLs
Every encode and decode runs in your browser with no upload, so UTM-tagged URLs containing internal campaign names, customer IDs, or referral codes never leak to a third-party service. Cyrillic, CJK, and emoji characters in internationalized domain names and path segments are encoded correctly per RFC 3986, and decoding handles malformed percent-sequences gracefully. Use it on staging links, internal redirect rules, and unreleased landing-page URLs without risk.