Peregrine falcon logoPeregrine Dev

URL Encode/Decode — Convert Online Free

Encode or decode URLs and query parameters with both encodeURIComponent and encodeURI modes. Instantly. No sign-up required.

How to url encode

  1. 1Type or paste your URL or text into the input area
  2. 2Click 'Encode' to URL-encode the text or 'Decode' to decode it
  3. 3View both the encodeURIComponent and encodeURI results
  4. 4Click 'Copy' to copy the output to your clipboard

About This Tool

URL encoding (also called percent-encoding) converts special characters in URLs into a format that can be safely transmitted over the internet. Characters like spaces, ampersands, question marks, and non-ASCII characters are replaced with percent signs followed by their hexadecimal byte values.

This free URL encode tool provides two encoding modes. The encodeURIComponent mode encodes everything except unreserved characters (letters, digits, hyphens, underscores, periods, and tildes), making it ideal for query parameter values. The encodeURI mode preserves URL structure characters like colons, slashes, and question marks, which is useful when encoding a complete URL.

All processing happens locally in your browser. Your URLs and data are never sent to a server, making this URL encode tool safe for encoding URLs that contain API keys, tokens, or other sensitive query parameters. There are no usage limits and no account required.

Frequently Asked Questions

encodeURI encodes a full URI but preserves characters that have special meaning in URLs (://?#[]@!$&'()*+,;=). encodeURIComponent encodes everything except unreserved characters, making it the right choice for encoding individual query parameter values.

Use URL encoding when passing data as URL query parameters, when building links that contain special characters, or when including user-generated text in URLs. Without encoding, characters like & or = could break the URL structure.

Yes. Both encodeURI and encodeURIComponent handle Unicode characters by first encoding them as UTF-8 bytes and then percent-encoding each byte. This works for any language or emoji.

Decoding reverses the process, converting percent-encoded sequences back to their original characters. For example, %20 becomes a space and %26 becomes an ampersand.

No. All encoding and decoding happens locally in your browser. Your data is never sent to any server and is not stored or logged.

Related Tools