URL Encoder/Decoder

Encode and decode URLs
This free online url encoder/decoder runs in your browser and is part of our Converters collection.

🔄 URL Encoder/Decoder

Encode and decode URLs

Example:

Original: https://example.com/hello world

Encoded: https://example.com/hello%20world

⚡
Instant In-Browser Execution Runs locally in JavaScript without wait times or server delays.
🔒
100% Privacy & Security Your inputs and files are never stored or logged on remote servers.
📱
Cross-Device Responsive Fully optimized for mobile smartphones, tablets, and desktop displays.
🎉
100% Free Forever No subscription fees, no signups, and no software installations.

How to Use the Online URL Encoder/Decoder

1 Choose Mode (Encode or Decode)

Select "Encode" to percent-encode reserved URL characters, or "Decode" to restore human-readable URLs.

2 Input URL or Query String

Paste the website address, query parameters, or string you want to process.

3 Choose Encoding Standard

Select `encodeURIComponent` (encodes all delimiters including `/`, `?`, `&` for query parameters) or `encodeURI` (preserves standard URL structural separators).

4 Copy Safe URL

Review the live output and copy the percent-encoded URL ready for REST APIs and web browsers.

Frequently Asked Questions

Common questions about using this free online url encoder/decoder.

What is the difference between `encodeURI` and `encodeURIComponent`? ▾
`encodeURI` preserves valid URL structural delimiters like `http://`, `?`, `&`, `/`, and `#`, making it suitable for full web addresses. `encodeURIComponent` encodes all characters (converting `/` to `%2F`, `&` to `%26`, `?` to `%3F`), which is mandatory for query parameter values.
What does `%20` and `+` represent in URL encoding? ▾
Both represent space characters. Standard RFC 3986 percent-encoding uses `%20`. In HTML application/x-www-form-urlencoded form data, spaces are traditionally replaced with `+`.
Why does unencoded text cause HTTP 400 Bad Request errors in APIs? ▾
Reserved characters like `?`, `&`, and `#` have special syntactic meanings in HTTP protocol parsing. If an unencoded parameter value contains an ampersand (`&`), web servers mistakenly split the value into a new parameter.
Does this tool handle UTF-8 characters and Asian scripts in URLs? ▾
Yes. Multibyte UTF-8 characters are encoded into standard percent-encoded octets (e.g., spaces to `%20`, emojis to `%F0%9F%9A%80`).

More Converters

Explore related tools in the same category to solve adjacent tasks faster.

Unit ConverterConvert units (length, weight, temperature, etc.)Currency ConverterConvert between currencies with live ratesNumber Base ConverterConvert between binary, octal, decimal, hexRoman Numeral ConverterConvert between Roman and Arabic numeralsNumber to Text ConverterConvert numbers to written words (currency format)