TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Percent-encode text

GEThttps://api.testingapis.com/api/utils/url/encodeSign in to see this endpoint's URL

Percent-encode text (RFC 3986).

Parameters 1

NameTypeDescription
textquery · stringText to encode. Default empty. Default: "".

Responses

200
Success.

Example

Request
curl -X GET "https://api.testingapis.com/api/utils/url/encode?text=a%20b%26c%3Dd" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{"input": "a b&c=d", "encoded": "a%20b%26c%3Dd"}

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.