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.

Input
Output

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.

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.

technical

Switch 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.

usage

Those 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.

technical

Yes. 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.

features

No. 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.

privacy

Yes. 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.

compatibility

Use 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

technical

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

business

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

web

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

web

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

social

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

technical