🔤

URL Encode

POST /v1/convert/url-encode
curl -X POST "https://convert.toolkitapi.io/v1/convert/url-encode" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input": "hello world & foo=bar"}'
# See curl example
// See curl example
Response 200 OK
{
  "output": "hello%20world%20%26%20foo%3Dbar",
  "input_size": 21,
  "output_size": 31
}

How to Use

1

Send a POST request to /v1/convert/url-encode with an input string.

About This Tool

Percent-encode a string for safe use in URLs. Encodes reserved characters (?, &, =, #, /, etc.) and non-ASCII characters to their percent-encoded equivalents.

Follows RFC 3986. Unreserved characters (A-Z, a-z, 0-9, -, _, ., ~) are not encoded.

Why Use This Tool

Frequently Asked Questions

Are spaces encoded as + or %20?
Spaces are encoded as %20 (RFC 3986). Use form encoding mode for + encoding.
Are slashes encoded?
Yes — all reserved characters including / are encoded. Use this for encoding individual components, not full URLs.

Start using URL Encode now

Get your free API key and make your first request in under a minute.