URL Encoder/Decoder

Encode special characters in URLs (percent-encoding) or decode them.

How to Use URL Encoder/Decoder

  1. Choose Encode or Decode.
  2. Pick the encoding type: All Characters for a single value, or Full URL only for a complete address.
  3. Paste your text and copy the result.

Which encoding to choose

All Characters (encodeURIComponent) encodes everything except letters, digits and - _ . ! ~ * ' ( ). Use it for a single value that goes inside a URL, such as a search term or a parameter, so characters like &, = and / don't break the link. 'fish & chips' becomes fish%20%26%20chips.

Full URL only (encodeURI) leaves the characters that give a URL its structure (: / ? # & =) alone and encodes the rest, such as spaces and accented letters. Use it on a whole address you want to make valid without changing its meaning.

Decoding tips

Spaces may appear as %20 or, in data sent from HTML forms, as +. This tool decodes %20 but leaves + as it is, so if your text came from a form, replace + with spaces afterwards. If a string is broken, such as a % without two hex digits after it, you'll see an error instead of garbled output.

Key Features & Practical Use Cases

  • Encoding a search term or value before adding it to a query string.
  • Reading an encoded link from an email, log file or redirect URL.
  • Fixing links that contain spaces, accents or special characters.

Frequently Asked Questions

What does %20 mean in a URL?

It's an encoded space. Every %XX is a character written as its hexadecimal byte value.

What's the difference between encodeURI and encodeURIComponent?

encodeURI keeps URL punctuation like / ? & intact; encodeURIComponent encodes it too, which is right for single values.

Why is + not turned into a space?

Standard URL decoding treats + as a plus sign. Form-encoded data uses + for spaces, so swap them yourself in that case.

Does it handle non-English characters?

Yes. Characters are encoded as UTF-8 bytes, so Hindi, emoji and accented letters work.

About OneClickly

OneClickly is a set of 119 free tools for PDFs, images, text, everyday math and code. They run in your browser, so the files and text you work with stay on your device.

Related Tools

  • HTML Encoder/Decoder - Escape special characters as HTML entities, or decode entities back to plain text.
  • JWT Decoder - Read the header, payload and expiry of a JSON Web Token in your browser.
  • Hash Generator - Get MD5, SHA-1, SHA-256 and SHA-512 hashes of any text as you type.
  • Bcrypt Hash Generator - Create bcrypt password hashes and check a password against an existing hash.
  • JWT Generator - Create HS256 signed JSON Web Tokens for testing, with your own payload and secret.
  • Base64 Encoder/Decoder - Encode text to Base64 or decode it back, with UTF-8 and URL-safe support.