URL Encoder / Decoder
Percent-encode and decode URLs and query values, and take a URL apart into its parts
Text
Component: every reserved character is encoded, for a query value or a path part
Encoded
URL parts
The typed URL taken apart
| Part | Value | |
|---|---|---|
| Protocol | https: | |
| User name | — | |
| Password | — | |
| Host | example.com | |
| Port | 443 (the protocol's default) | |
| Path | /search | |
| Query | ?q=caf%C3%A9%20cr%C3%A8me&page=2 | |
| Fragment | #results | |
| Origin | https://example.com |
Query parameters
| Name | Value (decoded) | |
|---|---|---|
| q | café crème | |
| page | 2 |
How to encode or decode a URL
- Choose Encode or Decode, and type or paste your text or URL.
- When encoding, choose a component (a query value, every reserved character encoded) or a whole URL (: / ? # & = kept), and spaces as %20 or +.
- Copy the result.
- Below, see the URL taken apart: protocol, host, port, path, query and fragment, its parameters decoded in a table.
Questions
What is percent-encoding?
Characters that can't appear in a URL, such as spaces, accents and & in a value, are written as % followed by their code, e.g. a space as %20 and é as %C3%A9.
Component or whole URL?
Encode a component for a value you put in a URL, such as a search query; encode a whole URL to clean up one you already have without breaking its structure.
Why do spaces become + sometimes?
HTML forms send spaces as +; choose Spaces as + to encode that way, or to read + as a space when decoding.
Is my URL sent anywhere?
No, it's encoded and decoded by your browser.