Free & private
Text & web

URL encode and decode

Make text safe to drop into a URL, or turn a percent-encoded string back into readable text. Choose component mode for query values or full-URI mode for whole addresses.

Reversible100% FreeNo upload
URL encode
Text & web · reversible · UTF-8
try
Input0 chars · 0 bytes
Output0 chars · 0 bytes
UTF-8 · ready⌘⏎ copy⌘⇧S swap● local

What URL encoding is

URLs may only contain a limited set of characters. Everything else — spaces, most punctuation, non-ASCII letters — has to be written as a percent sign followed by two hexadecimal digits of its UTF-8 bytes. A space becomes %20, an ampersand becomes %26, and é becomes %C3%A9. This is called percent-encoding, and it is how browsers and servers exchange arbitrary text inside an address.

Component vs full URI

The right mode depends on what you are encoding. Component encodes a single piece — a query-string value, a path segment, a form field — and escapes the reserved characters & = ? / # : + as well, so they cannot break the URL structure. Full URI encodes a complete address and deliberately leaves those structural characters alone, so https://example.com/a?b=c stays usable. If you are building ?q=…, use component; if you are cleaning up a whole link, use full URI.

How to use this tool

  1. Paste the text or URL on the left.
  2. Pick Component or Full URI, then Encode or Decode.
  3. Decoding also turns + into a space, matching how form data is submitted.

Common pitfalls

  • Encoding a whole URL in component mode will escape the :// and ?, breaking the link. Use full URI for that.
  • Double-encoding (%2520 instead of %20) happens when you encode an already-encoded string. Decode once first.
  • Non-ASCII characters produce several %xx pairs because UTF-8 uses multiple bytes per character.

Examples

Inputname=John Doe & Co
Outputname%3DJohn%20Doe%20%26%20Co
Inputq=café/90%
Outputq%3Dcaf%C3%A9%2F90%25

Frequently asked questions

What is the difference between URL encode component and full URI?
Component mode also escapes reserved characters such as & = ? / so a value cannot alter the URL structure. Full-URI mode leaves those characters intact so a complete address keeps working.
Why does a space sometimes become + and sometimes %20?
In query strings submitted by HTML forms a space is traditionally +, while percent-encoding uses %20. This decoder accepts both and turns + back into a space.
Why does one accented letter become several %xx pairs?
Characters are encoded as UTF-8 bytes first, and many characters use more than one byte, so each byte becomes its own %xx pair.
Is anything sent to a server?
No. Encoding and decoding happen locally in your browser.

Related tools

Every tool on encoder.website converts your text and hands the result straight back — it is never stored. Pick another tool from the sidebar any time.