URL Encoder & Decoder - Percent-Encode Strings & Full URLs
Encode or decode URL components and full URLs. Choose component mode (encodeURIComponent) or full URL mode (encodeURI). Copy or download in one click.
About URL Encoding
"Component" mode uses encodeURIComponent, which escapes characters like ":/?#[]@" so the result is safe inside a single URL segment. "Full URL" mode uses encodeURI and leaves reserved characters in place, suitable for encoding an entire URL string.
Continue Enhancing Your Images
Take your photo editing to the next level with these popular tools
Add Text to Image
Add captions and titles to your enhanced photo
Add Photo Border
Frame your effect with beautiful borders
Compress Image
Optimize your enhanced image for sharing
Resize Image
Change image dimensions
Photo to Cartoon
Try a different artistic style
Pencil Sketch
Create artistic pencil drawings
Frequently Asked Questions
Component mode uses encodeURIComponent and escapes characters like ":/?#[]@" so the value is safe inside a single URL segment or query parameter. Full URL mode uses encodeURI and leaves those reserved characters alone so the entire URL stays a valid URL.
technicalSwitch to component mode, paste the parameter value and the encoder replaces spaces with %20, equals signs with %3D and so on. Drop the result into the URL after "?key=" or "&key=" and the link works on any browser, server or REST client.
usageThose characters are reserved by the URL syntax — they separate the scheme, path, query and fragment. Encoding them as %2B %2F %3A %3F %23 lets the value carry them literally without confusing the parser on the other side.
technicalYes. When the input contains a stray "%" that is not followed by two hex digits, the decoder shows an "Invalid input" message instead of producing garbled output. Fix the offending sequence and the result updates instantly.
featuresNo. The encoder uses the browser's built-in encodeURI / encodeURIComponent functions, so nothing crosses the network. That makes the tool safe for tokens, file paths and any other sensitive value you need to embed in a URL.
privacyYes. UTF-8 characters like ñ, 漢, ✓ and emoji are encoded into the corresponding %xx byte sequences. Modern browsers and servers decode them back to the original characters automatically, so the round-trip is loss-free.
compatibilityUse Cases
Build Query Strings for REST APIs
Encode search terms, filters and IDs for GET requests to REST APIs, Algolia, Elastic and Google Search so reserved characters do not break the request URL
Tracking Parameters for Marketing Links
Percent-encode UTM parameters, campaign names and referrer strings for Google Analytics, Facebook Ads and HubSpot links shared across email and social channels
Pass Filters & Search Terms in URLs
Encode multi-word search queries, special characters and sort options into shareable URLs for SaaS dashboards, e-commerce filters and admin panels
Generate mailto: Links with Subject & Body
Build mailto: links where the subject and body contain newlines, punctuation and emoji so click-to-email buttons open Gmail and Outlook with the message pre-filled
Embed Messages in WhatsApp & SMS Share Links
Encode pre-filled WhatsApp, Telegram and SMS share links so customers can tap a button on your site and open the messenger with the marketing message ready
Escape User Input for Safe URL Construction
Encode user-controlled values before injecting them into URLs to avoid request-smuggling, redirect-injection and broken-link bugs in production web apps
Pixoate