Developer Tools🔒 Processed Locally

URL Encoder / Decoder

Encode text to percent-encoded URLs or decode encoded strings with support for component mode (encodeURIComponent) and full URL mode (encodeURI).

Component Mode: Encodes all special characters including : / ? & = #. Ideal for query string values and parameters.

How to Use the URL Encoder / Decoder

Paste your URL or text string, choose whether to encode or decode, and select your mode: "Component Mode" (encodes all delimiters for query values) or "Full URL Mode" (preserves protocol ://, ?, and #).

Formula & Calculation Method

Percent-Encoding (RFC 3986): unreserved characters are preserved; all others become %HH hex octets

Standard percent-encoding replaces unsafe ASCII and Unicode characters with a percent sign followed by two hexadecimal digits.

Calculation Examples

Component Encoding with Space and Ampersand

Input:search query & filters
Result:search%20query%20%26%20filters

Component mode encodes & and spaces safely.

Full URL Encoding

Input:https://example.com/search?q=hello world
Result:https://example.com/search?q=hello%20world

Full URL mode preserves protocol and query separator.

Frequently Asked Questions

What is the difference between encodeURI and encodeURIComponent?

encodeURI is designed for complete URLs and does not encode protocol separators (://), slashes (/), or query question marks (?). encodeURIComponent encodes everything except letters, digits, and - _ . ! ~ * ' (, making it ideal for individual query parameter values.

Does this tool support international Unicode and emojis?

Yes. All characters are encoded into standard UTF-8 percent-encoded bytes (e.g. 🚀 becomes %F0%9F%9A%80).

Is my URL input kept private?

Yes. Encoding and decoding happen 100% inside your browser. No URLs or query parameters are ever logged or transmitted.