Skip to main content

URL Percent-Encoder

Safely percent-encode special characters (`&`, `?`, `=`, `/`, spaces, and UTF-8) for query parameters, OAuth redirect URIs, and cURL requests.

Processed locally · 0 bytes uploaded

Input

Output

Component Mode vs. Full URI Mode Explained

  • Component (encodeURIComponent — Recommended for query values): Encodes reserved delimiters including :, /, ?, &, and = so a nested callback URL like ?redirect_uri=https%3A%2F%2Fexample.com%2Fauth won't break the outer query string.
  • Full URI (encodeURI): Leaves URL structure characters (https://, ?, &) intact while percent-encoding spaces and non-ASCII UTF-8 characters.

Specs

Supported formats
Input & Output: Raw URLs / query parameters ↔ Percent-encoded UTF-8 strings (encodeURIComponent / encodeURI)
File & batch limits
Instant conversion for URLs and query strings up to several MB in memory
AI model download
None (0 MB — native JavaScript URI functions)
Browsers & devices
All modern desktop & mobile browsers
Offline support
Yes — works 100% offline after page load

FAQ

Should spaces be encoded as %20 or +?

RFC 3986 percent-encoding uses %20, which works reliably in both URL paths and query strings.

Are API keys in my query string sent anywhere?

No. Encoding runs locally in your browser's built-in JavaScript engine.

Share this tool: