ESC

Input Text

encodeURIComponent: Encodes all special characters including :, /, ?, #, etc.

Result

All processing happens in your browser. No data is sent to any server.

Usage Examples

URL Parameter Encoding

Encode URL query parameters containing spaces, ampersands, and other special characters for safe use in URLs.

Special Characters

Encode form data with special characters like @, &, =, and spaces for proper HTTP transmission.

International Text

Encode and decode URLs containing international characters (Chinese, Arabic, etc.) using percent-encoding.

Features

Two-Way Conversion

Encode text to URL format and decode percent-encoded strings back to readable text

Two Encoding Modes

Choose between encodeURIComponent for parameters and encodeURI for full URLs

Unicode Support

Full support for international characters, emojis, and multi-byte characters

Privacy First

All processing runs locally in your browser, no data sent to servers

How to Use

1

Choose Encoding Mode

Select Component mode for query parameters or Full URL mode for complete URLs.

2

Enter Text

Type or paste the text or URL you want to encode or decode.

3

Encode or Decode

Click Encode to convert to URL format, or Decode to convert back to readable text. Copy the result.

Frequently Asked Questions

URL encoding replaces characters that are not allowed in URLs with a percent sign followed by two hexadecimal digits. A space becomes %20, & becomes %26, = becomes %3D. This is defined in RFC 3986 and ensures URLs transmit correctly through all HTTP-compliant software without ambiguity.

encodeURIComponent encodes every character except letters, digits, and - _ . ! ~ * ' ( ). Use it for individual query parameter values. encodeURI preserves the characters that are part of URL structure: : / ? # [ ] @ ! $ & ' ( ) * + , ; =. Use it for a complete URL that you want to keep structurally intact.

Any time you pass user-provided data in a URL query string or path: search terms with spaces or special characters, form field values, API parameters containing & or =, redirect URL parameters, internationalized characters, or email addresses. Missing encoding causes parameters to be misread or URLs to break entirely.

The unreserved characters: A–Z, a–z, 0–9, hyphen (-), underscore (_), period (.), and tilde (~). All other characters, including spaces, brackets, quotes, and non-ASCII Unicode, need to be percent-encoded when used outside their reserved URL roles.

Use encodeURIComponent (Component mode) on the inner URL. For example, to pass https://example.com/path?q=1 as a query parameter value, encode it to https%3A%2F%2Fexample.com%2Fpath%3Fq%3D1. Never use encodeURI here — it would leave : and / unencoded, causing the outer URL to misparse the parameter boundary.

Yes. Non-ASCII characters (Arabic, Chinese, accented letters, etc.) are first encoded as UTF-8 bytes and then each byte is percent-encoded. An emoji like 😀 becomes %F0%9F%98%80. Modern browsers handle this automatically in address bars, but when constructing URLs programmatically you need to encode explicitly.

Paste the percent-encoded text into the input and click Decode. The tool reverses the process: %20 becomes a space, %26 becomes &, and UTF-8 encoded sequences are converted back to their Unicode characters. Useful for reading log files, debugging API requests, or understanding redirect parameters.

No. All encoding and decoding runs locally in your browser via JavaScript. URLs and parameters you enter are never transmitted anywhere.

What is URL Encoder/Decoder?

Paste a URL with special characters into an API call and watch it break. Spaces, ampersands, non-ASCII characters, they all need to be percent-encoded or things go wrong. This tool handles that. Encode text for safe use in URLs, or decode percent-encoded strings back to readable text. Two modes: encodeURIComponent for individual parameter values, encodeURI for full URLs where you want to keep the structure intact.

Why Use URL Encoder/Decoder?

If you build URLs by hand for API testing, webhook configs, or redirect rules, you need encoding. One unencoded ampersand in a query string splits your parameter in two. One unencoded space breaks the whole URL. This tool prevents those headaches. Full Unicode support means it works with any language. Runs in your browser, so your API keys and tokens in those URLs stay private.

Security and Privacy

Your data security is our priority

Local Processing

All processing happens in your browser

No Data Transfer

Your data is not sent to our servers

No Data Storage

No data is stored or shared

SSL Encryption

SSL encryption for secure connection

Also on MoreOnlineTools