Encode or decode any URL in one paste
Percent-encoded URLs are unreadable, and hand-editing breaks them. Paste any string or full URL to encode or decode it correctly in component or full-URL mode, right in your browser.
Paste a URL or string — get the correctly encoded or decoded version back
What you can do with URL Encoder/Decoder
Everything this tool helps you accomplish — no learning curve, no setup.
- Percent-encode URLs for safe linking
- Decode encoded URLs back to plain text
- Encode single query parameters cleanly
- Fix broken links with special characters
- Encode whole URLs or individual components
- Prepare share links for social and email
Settings information
2 settings
Every control in URL Encoder/Decoder, explained — what it does and when to use it.
Settings
- ModePresets
- Switch between converting plain text into percent-encoded form and turning an already-encoded URL or string back into readable text.Options: EncodeDecode
- StrictnessPresets
- Component escapes reserved characters like :/?#[]@ so the result is safe inside a single URL part; Full URL leaves them intact so an entire web address stays valid.Options: ComponentFull URL
Done with URL Encoder/Decoder? Try these next
Hand-picked tools that pair well with URL Encoder/Decoder. Keep going without losing your file.
Base64 Encoder / Decoder
Cryptic Base64 in logs and payloads slows you down. Decode to readable text or encode any text or file — URL-safe, UTF-8 safe, and instant in your browser.
Try it nowQR Code Generator
Third-party QR services expire your codes or charge later. Make static QR codes for URLs, WiFi, UPI, phone, or email that work forever — in seconds.
Try it nowJSON Prettify
One-line API responses are impossible to scan. Paste or drop JSON to validate it, pretty-print at 2, 4, or 8 spaces, or minify it for production — instantly in your browser.
Try it nowHash Generator
Verifying downloads shouldn't need a command line. Drop a file or paste text for instant SHA-1, SHA-256, SHA-384 and SHA-512 digests. Use and copy results free — no account needed.
Try it nowJWT Decoder
Debugging auth means squinting at opaque tokens. Paste a JWT to see its decoded header, payload and expiry instantly — then copy locally. Free to use, with no account needed.
Try it nowHTML Prettify
Exported HTML is a wall of text. Paste or drop a file for consistent indentation you can actually read — or minify it to one line for production, instantly in your browser.
Try it nowFrequently 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.
compatibilityYes. Switch the mode toggle to Encode to percent-encode raw text, or to Decode to turn %XX sequences back into readable characters. The same Component and Full URL options apply in both directions, so you can round-trip a value and get exactly what you started with.
usageThe at sign becomes %40 in percent encoding. In Component mode the tool escapes it automatically, which matters for email addresses in query strings — user@example.com becomes user%40example.com. Other common escapes: a space is %20, '#' is %23, '&' is %26 and '?' is %3F. Paste any text to see the full encoded result instantly.
technicalYes — they are two names for the same mechanism defined in RFC 3986: unsafe characters are replaced with a percent sign followed by two hex digits of their UTF-8 bytes. 'URL encoding' is the everyday name and 'percent encoding' the specification term. This tool applies it with encodeURIComponent or encodeURI depending on the mode you choose.
technicalHow URL Encoder/Decoder helps you get it done
Real problems it solves every day — for businesses, creators, and everyday tasks. Find the use case that fits you and start in seconds.
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
Debug OAuth & Redirect Callback URLs
Decode a redirect_uri, state or code parameter from an OAuth callback or webhook log to see exactly what value a provider received — often the fastest way to spot a double-encoding bug breaking a login flow.
Build Mobile App Deep Links
Percent-encode parameters going into a custom-scheme or Universal/App Link (myapp://open?ref=...) so special characters in referral codes or shared content IDs survive the jump from browser to app.
Safe Direct-Download Links for Files with Spaces
Encode file names containing spaces, parentheses or accented characters (e.g. 'Q1 Report (Final).pdf') into a URL that CDNs and browsers won't truncate or misinterpret when linked directly.
Check Where a Shortened or Encoded Link Really Goes
Paste a suspicious percent-encoded or forwarded link into Decode mode to reveal the real destination URL hidden inside redirect or tracking parameters before clicking it.
