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.
Paste text or encoded URL here…
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
Encode any text or file to Base64 (with URL-safe variant), or decode Base64 back to text. UTF-8 safe.
Try it nowQR Code Generator
Create QR codes from text, URLs, WiFi, UPI, phone numbers or email. Static QR codes that never expire — no signup, no subscription and no watermark.
Try it nowJSON Prettify
Format, validate and minify JSON in your browser. Pretty 2 / 4 / 8 space indent or one-line minify with copy + download.
Try it nowHash Generator
Compute SHA-1, SHA-256, SHA-384 and SHA-512 hex digests of any text or file using the browser's Web Crypto API.
Try it nowJWT Decoder
Decode JSON Web Tokens, view header and payload, check expiry. Local-only — your tokens never leave the browser.
Try it nowHTML Prettify
Beautify messy HTML with proper indentation or minify to a single line. Drop a file or paste, then copy or download.
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.
compatibilityHow 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
Pixoate