URL Encoder / Decoder

Percent-encode or decode any text or URL live as you type — component or full-URL mode, form-style + spaces, and one-click copy. Nothing leaves your browser.

Live — output updates as you type

Component = encodeURIComponent · Full = encodeURI

application/x-www-form-urlencoded query strings

0 characters

Encoded result

0 characters

Everything runs on your device — nothing is uploaded or logged.

How URL Encoding Works

A URL can only carry a small set of safe ASCII characters. Everything else — spaces, ampersands, non-English letters, emoji — must be percent-encoded: each byte of the character's UTF-8 form is written as % plus two hex digits. A space becomes %20, & becomes %26, and ❤ becomes %E2%9D%A4. Get this wrong and query parameters silently truncate: a product name like "Tom & Jerry" pasted raw into ?q= ends the value at the ampersand.

The two modes matter. Component mode (encodeURIComponent) encodes structural characters too — it's what you want for an individual parameter value, like a redirect URL inside another URL. Full-URL mode (encodeURI) leaves :/?&=# alone so a complete address stays functional. Building campaign links? Encode each value here, then assemble them in our UTM Builder — or inspect encoded tokens with the JWT Decoder and Base64 tool.

Common characters and their encodings

CharacterEncodedWhere it bites
space%20 (or + in forms)Breaks the URL at the space
&%26Starts a new query parameter
=%3DSplits key from value
?%3FStarts the query string
#%23Everything after is a fragment — never sent to the server
/%2FPath separator
%%25Malformed sequences fail decoding
+%2BDecoded as a space by form parsers

Frequently Asked Questions

What is URL encoding (percent-encoding)?
URLs allow only limited safe characters; percent-encoding writes everything else as % plus the UTF-8 byte value in hex — space → %20, & → %26, ❤ → %E2%9D%A4. Browsers and servers decode automatically.
Component vs full-URL mode — which one?
Component (encodeURIComponent) encodes / ? & = : # too — use it for individual parameter values. Full URL (encodeURI) keeps structure intact so a whole address stays clickable.
Why does + sometimes mean a space?
HTML form encoding (application/x-www-form-urlencoded) uses + for spaces inside query strings. Enable "+ as space" to match that style; elsewhere + is a literal plus.
Why do I get a decoding error?
The text contains a % not followed by two hex digits (e.g. "100% free"). Fix the stray % or switch to Encode mode, which never fails.
Is my text uploaded anywhere?
No — encoding and decoding run entirely in your browser. Nothing is sent, stored or logged, and the tool works offline once loaded.