Use this free URL encoder and decoder to convert text to percent encoding and back. Paste a URL, a query string, or a single value, choose Encode or Decode, and pick an encoding type. The result appears instantly, and you can copy it or send it back into the input to run another pass. Everything runs in your browser, so nothing you type is uploaded.
URLs can only safely carry a limited set of characters. Percent encoding turns everything else into a safe form, so links, forms, and API requests arrive exactly as you wrote them.
How to use the URL encoder / decoder
- Pick a mode: choose Encode to make text URL-safe, or Decode to turn percent-encoded text back into readable text.
- Choose an encoding type: Component for a single value, Full URL for a whole address, or Form for HTML form data that uses + for spaces.
- Enter your text: type or paste it into the box. The result updates as you type.
- Copy or reuse the result: click Copy, or click Use as input to flip the mode and check that it round-trips.
Encoding types
- Component: uses
encodeURIComponent. It encodes reserved characters such as/ ? # & =, so it is the right choice for one query value, path segment, or parameter. - Full URL: uses
encodeURI. It keeps: / ? # & =unchanged so the address still works, and only encodes spaces, non-ASCII letters, and other unsafe characters. - Form (+): works like Component, but writes spaces as
+. This matches theapplication/x-www-form-urlencodedformat used by HTML forms.
Common percent-encoded characters
| Character | Encoded | Why it matters |
|---|---|---|
| Space | %20 (or +) | Spaces are not allowed in URLs |
| & | %26 | Separates query parameters |
| = | %3D | Separates a key from its value |
| ? | %3F | Starts the query string |
| # | %23 | Starts the fragment |
| / | %2F | Separates path segments |
| % | %25 | Marks an encoded character |
| é | %C3%A9 | Non-ASCII letters are sent as UTF-8 bytes |
How URL encoding works
Percent encoding replaces each unsafe character with a percent sign followed by two hexadecimal digits that give the byte value. Characters outside basic ASCII are first converted to UTF-8 bytes, so a single letter such as “é” becomes two encoded bytes. Decoding reverses the process. A decoder reports an error when it finds a percent sign that is not followed by two valid hex digits, or when the bytes do not form valid UTF-8.
Tips for correct URLs
- Encode values, not whole URLs: encode each query value on its own with Component, then join them with
&and=. - Do not encode twice: encoding an already encoded string turns
%20into%2520. If you see that pattern, decode once. - Use Full URL for complete addresses: Component would break the
https://and path separators. - Check the plus sign: in query strings,
+usually means a space, while in paths it is a literal plus. - Test the round trip: use “Use as input” to decode your encoded result and confirm it matches the original.
Whether you are building an API request, a tracking link, or a redirect, a correctly encoded URL prevents broken links and lost parameters.
Worked examples
Query value
Choose Encode and Component, and enter coffee & tea. The result is coffee%20%26%20tea. The ampersand is encoded so it is not mistaken for a parameter separator.
Full URL
Choose Encode and Full URL, and enter https://example.com/café menu?lang=fr. The result is https://example.com/caf%C3%A9%20menu?lang=fr. The scheme, slashes, and query separators stay in place.
Form data
Choose Encode and Form (+), and enter hello world. The result is hello+world. Choose Decode with the same type to turn the plus sign back into a space.
Frequently asked questions
Is this tool free to use?
Yes. You can encode and decode as much as you like without creating an account.
Does the tool store what I type?
No. Conversion happens in your browser. Nothing you type is saved on this page or sent to a server, and clearing the form removes it from the screen.
What is the difference between Component and Full URL?
Component encodes reserved characters such as / ? # & =, so it suits single values. Full URL leaves them alone so a complete address keeps working.
Why does my decoded text show an error?
The input contains a percent sign that is not followed by two valid hex digits, or the encoded bytes are not valid UTF-8. Check for a stray % or a truncated sequence.
Should spaces be %20 or +?
Both appear in practice. Use %20 in paths and most modern APIs. Use + only for HTML form data, which is what the Form option produces.
Does it support non-English characters and emoji?
Yes. Characters outside basic ASCII are converted to UTF-8 and then percent encoded, and decoding restores them.