All tools

URL Encoder/Decoder

URL Encoder and Decoder — Encode or Decode a URL Online

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.

Input
Output

How to URL encode and decode text, query parameters and full URLs

This URL encoder and decoder percent-encodes text so it can sit safely inside a link, and turns percent-encoded text back into something readable. Choose Encode or Decode, then Component for a single value or Full URL for a whole address, and the result appears as you type. The conversion runs in your browser with the standard JavaScript functions and treats text as UTF-8.

Encode a query parameter or a piece of text

Keep Mode on Encode and Strictness on Component for a value that goes after a key and an equals sign. Everything except letters, digits, the exclamation mark and the marks - _ . ~ * ' ( ) is replaced, so a b&c=d/é becomes a%20b%26c%3Dd%2F%C3%A9. A space becomes %20, not a plus sign, and the accented letter becomes its two UTF-8 bytes. Because the ampersand, equals sign and slash are escaped, the value cannot break the surrounding URL.

  1. Keep Mode on Encode.
  2. Choose Component under Strictness.
  3. Paste the value into Input.
  4. Select Copy and place the result after the key and equals sign.

Encode a whole URL without breaking it

Switch Strictness to Full URL to encode an address as a whole. The characters that structure a URL, such as : / ? # & = and +, are left alone, while spaces and non-ASCII letters are encoded, so https://example.com/a b?q=é&x=1 becomes https://example.com/a%20b?q=%C3%A9&x=1. This mode cannot tell which ampersand belongs to your data. When a value may contain one, encode each value in Component mode first, then assemble the URL. Once it is ready, turn the link into a QR code.

Decode a percent-encoded URL to read it

Choose Decode and paste the text. Component decodes every %XX sequence. Full URL leaves the sequences that stand for reserved characters, such as %2F, %3F, %23, %26 and %3D, in place, because turning them back into characters would change the structure of the URL. A plus sign is never turned into a space. If a percent sign is not followed by two hex digits, or the bytes are not valid UTF-8, the output shows a message that the text cannot be decoded.

Fix double encoding and other common problems

Encoding text that is already encoded turns each percent sign into %25, so %20 becomes %2520, which is the usual sign of double encoding. Decode once to undo it, then encode only the raw value. Line breaks become %0A, and trailing spaces become %20, so trim the input first. Binary data does not belong in a link, but a URL-safe Base64 string can travel in one without further escaping.

Before you use an encoded URL

  • Encode each value on its own in Component mode, then join the parts.
  • Never encode a string that is already percent-encoded.
  • Test the link after encoding, because the receiving service decides how it reads plus signs.
  • Use Full URL mode only for a complete address, not for a value inside one.

Binary data or a whole file is better encoded as Base64 or a data URL than percent-escaped. When the encoded link is ready, turn it into a static QR code, and to build a readable slug from a page title, convert the words to kebab-case before encoding.

What you can do with URL Encoder/Decoder

Review the main capabilities before you begin.

  • 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 reference

Available controls for URL Encoder/Decoder.

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
Free to use · No signup required · Without watermarkUploads are encrypted in transitRemoved under our retention policy

Frequently Asked Questions

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

For Developers

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

For Business

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

Web & SEO

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 & SEO

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

Social Media

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

For Developers

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

For Developers

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.

On Mobile

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.

Web & SEO

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.

Privacy & Security

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.

Watch each transformation land

Every photo crosses the slash untouched and comes out the other side finished.