Developer Tool · Instant · Free

URL Encoder.
Encode & Decode.

Encode special characters in URLs or decode percent-encoded strings. Everything runs instantly in your browser.

URL Encoder / Decoder

0 characters
0 characters
URL Encoding
Convert special characters to percent-encoded format for safe URLs.
Instant
Results appear immediately. Both encodeURI and encodeURIComponent.
Private
Nothing leaves your browser. No server processing.

How to Encode or Decode URLs

1
Enter your text or URL

Paste a URL with special characters, or encoded text with percent-encoded sequences like %20 or %3D.

2
Choose encode or decode

Click Encode to convert special characters to percent-encoded format, or Decode to convert them back to readable text.

3
Copy the result

The converted text appears instantly. Click Copy to use it in your application.

Three buttons, three different jobs

A web address may contain only a limited set of characters. Everything else — spaces, accented letters, and symbols that have a special meaning in URLs — has to be written as a percent sign followed by two hex digits. Which characters get converted depends on what you are encoding, and choosing the wrong button is the most common mistake.

What each button does to the same text

ButtonUse it forInputResult
Encode URLA complete addresshttps://example.com/my file?q=a&bhttps://example.com/my%20file?q=a&b
encodeURIComponentOne value inside an addressrock & roll/50%rock%20%26%20roll%2F50%25
Decode URLReading an encoded addresscaf%C3%A9%20menucafé menu
  • Encode URL leaves the characters that structure an address alone — : / ? & = # — and converts only what is never allowed, such as spaces and non-English letters.
  • encodeURIComponent converts those structural characters too. Use it for a search term, a file name or any value that goes after an =, so that an & inside the value is not mistaken for the start of the next parameter.
  • Using Encode URL on a single value leaves & and = untouched and breaks the link. Using encodeURIComponent on a whole address turns https:// into https%3A%2F%2F and the link stops working.

Things that trip people up

  • Spaces become %20 here, never +. The plus sign for spaces belongs to HTML form submissions. When decoding text copied from a form, replace + with a space first — the decoder leaves a + as it is.
  • Double encoding. Encoding an already encoded address turns %20 into %2520. If you see %25 where you did not expect it, decode once and check.
  • Non-English letters are written as UTF-8 bytes: é becomes %C3%A9, š becomes %C5%A1.
  • "URI malformed" on decoding means a % that is not followed by two valid hex digits — often a real percent sign in the text.

Frequently Asked Questions

What characters need to be URL encoded?

Spaces, non-ASCII characters, and reserved characters like &, =, #, ?, / must be encoded when used as data within URL components.

What is the difference between encodeURI and encodeURIComponent?

encodeURI preserves URL-special characters (/, ?, &). encodeURIComponent encodes everything — use it for individual parameter values.

Why do spaces sometimes appear as + and sometimes as %20?

In query strings, spaces can be + or %20. In the URL path, only %20 is valid. Our tool uses %20 for universal compatibility.

Is my data safe?

Yes. All encoding and decoding happens locally in your browser.