Appearance
Accent color
Font size
Layout density
Preferences are saved on this device for the URL tool only.
Query string builder Parse & edit ?key=value pairs — encodes each part safely
Character map Live view of which characters need encoding
URL Encoder & Decoder for percent-safe links
Percent-encode special characters for query strings, redirects, and sitemaps — or decode
%20-laden
URLs back to readable text. Instant, UTF-8 safe, and 100% private: everything runs in your browser.
- 2-way
- Encode & decode
- 0 ms
- Network wait
- 100%
- Client-side
The basics
What is URL encoding?
URLs were designed to carry a small set of ASCII characters. Everything else — spaces, accented
letters, emoji, and symbols like &,
?, and
= when they appear inside a value —
must be rewritten as a percent sign followed by two hex digits of its UTF-8 byte sequence.
That translation is percent-encoding, standardized by RFC 3986. It keeps links intact across browsers, email clients, APIs, and sitemaps — and decoding reverses it perfectly, byte for byte.
- Preserves meaning: reserved characters stay structural, encoded ones stay data
- Lossless: decoded output is byte-identical to the original
- Universal: every browser, crawler, and server reads the same format
Anatomy of an encoded URL
Protocol
Never encoded
Path
Encode segments
Param name
Stays readable
Param value
Encode fully
Only the parameter values are percent-encoded — the structural characters that give the URL its meaning stay exactly as they are.
How to use
Encode or decode in four steps
No uploads, no waiting — the conversion happens locally the moment you type.
Paste your text
Drop any URL, query value, or percent-encoded string into the input field — links, parameters, or plain text all work.
Pick a direction
Choose Encode to make text URL-safe, or Decode to turn %XX sequences back into readable characters.
Choose the scope
Encode a single value (escapes & = ? /) or a whole URL (keeps the structure intact) depending on what you need.
Copy the result
The output updates instantly as you type. Copy it to your clipboard and paste it wherever it’s needed.
Character sets
What needs encoding — and what doesn’t
RFC 3986 splits characters into two camps: the unreserved set that travels as-is, and everything else that must be escaped.
Unreserved — safe as-is
Letters, digits, and four symbols never need encoding. They can appear anywhere in a URL without changing its meaning.
Reserved & unsafe — encode inside values
Reserved characters carry structural meaning. Inside a parameter value they must be percent-encoded or they hijack the URL’s syntax.
Quick reference
Common percent-encoding cheat sheet
The encodings you’ll meet most often — including multi-byte UTF-8 characters.
| Character | Name | Encoded | Note |
|---|---|---|---|
| Space | %20 | Form submissions may use + instead | |
| " | Double quote | %22 | Unsafe — always encode |
| % | Percent sign | %25 | Encode first to avoid double-encoding |
| < | Less than | %3C | Unsafe — always encode |
| > | Greater than | %3E | Unsafe — always encode |
| { | Left brace | %7B | Unsafe — always encode |
| } | Right brace | %7D | Unsafe — always encode |
| | | Pipe | %7C | Unsafe — always encode |
| é | e acute | %C3%A9 | UTF-8, 2 bytes |
| € | Euro sign | %E2%82%AC | UTF-8, 3 bytes |
| 🚀 | Emoji | %F0%9F%9A%80 | UTF-8, 4 bytes |
Use cases
Where URL encoding saves your links
From campaign tracking to API calls — anywhere a special character can silently corrupt a URL.
Query string values
Encode parameter values that contain spaces, ampersands, or equals signs so they can’t corrupt the query string structure.
Redirect & callback URLs
Safely pass redirect_uri, callback, and return_url parameters — nested URLs must be encoded or they break the parent URL.
XML sitemaps
Sitemap <loc> entries must be entity- and percent-escaped. Encode non-ASCII URLs before submitting them to search engines.
UTM & tracking links
Build UTM-tagged campaign URLs that survive email clients, social platforms, and link shorteners without mangled parameters.
API requests
Encode path segments and query values when calling REST APIs — a raw & or # inside a value silently truncates your request.
Decoding log files
Turn unreadable %20 and %3F strings from server logs, analytics exports, and emails back into URLs humans can read.
Deep dive
encodeURI vs. encodeURIComponent
The two JavaScript functions behind every URL encoder — and when to use each.
// keeps : / ? & = intact
encodeURI("https://x.com/a b?c=d")
// → "https://x.com/a%20b?c=d"
Escapes only characters that can never appear in a URL — spaces and non-ASCII — while trusting the structure you give it.
// escapes every reserved char
encodeURIComponent("a & b=c")
// → "a%20%26%20b%3Dc"
Assumes the input is pure data, so every reserved character is neutralized — the safe choice for query values, paths, and tokens.
FAQ
URL encoding questions, answered
What is URL encoding (percent-encoding)?
URL encoding — formally percent-encoding — replaces characters that are unsafe or have special meaning in a URL with a percent sign followed by two hexadecimal digits representing the character’s UTF-8 byte value. A space becomes %20, an ampersand becomes %26. The mechanism is defined by RFC 3986 and is what allows URLs to carry arbitrary data without breaking their syntax.
What is the difference between encodeURI and encodeURIComponent?
encodeURIComponent escapes every reserved character — including / ? & = : # — so it’s the right choice for individual query parameter values. encodeURI leaves those characters untouched because they give a full URL its structure. Rule of thumb: encoding a whole address, use encodeURI; encoding a value that goes inside an address, use encodeURIComponent.
Why do spaces sometimes appear as + and sometimes as %20?
Two conventions exist. RFC 3986 percent-encoding uses %20 for spaces. The older application/x-www-form-urlencoded format — used by HTML form submissions — represents a space as a plus sign. Both are accepted inside query strings, which is why you see both in the wild. This tool handles each variant and decodes + back to a space in form mode.
What is double-encoding and why does it break links?
Double-encoding happens when already-encoded text gets encoded a second time: the % itself becomes %25, so %20 turns into %2520. The decoded result is a literal “%20” instead of a space. It commonly appears in redirect chains and tracking URLs. If a decoded link still contains % sequences, decode it a second time — or better, find where it was encoded twice.
Does URL encoding affect SEO?
Directly, no — Google crawls and indexes percent-encoded URLs fine. Indirectly, yes: unencoded special characters can break links, sitemaps, canonical tags, and sharing widgets, which creates duplicate URLs and lost crawl paths. Properly encoded, human-readable URLs also earn higher click-through rates than opaque strings full of broken escapes.
Is my data sent to a server when I use this tool?
No. All encoding and decoding runs locally in your browser using native JavaScript functions. Nothing you paste — including URLs containing tokens, session IDs, or private parameters — ever leaves your device. The tool even keeps working if you go offline after the page loads.
Keep going
More developer & SEO tools
Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 back to plain text.
HTML Entity Encoder / Decoder
Encode or decode HTML entities and special characters.
HTML Minifier
Minify HTML to reduce page size and stay under Google's 2MB crawl limit.
Meta Tag Generator
Generate HTML meta tags for title, description, viewport, and more.
Ready to fix that URL?
Paste it in the encoder above — no signup, no uploads, no limits. Your links stay on your device.