URL Encoder/Decoder API

POST

Make special characters safe for query parameters and links.

URL Encoder/Decoder converts text into percent-encoded strings or decodes existing URL components back into plain text. Pass any string with an encode or decode action to receive the processed output and your original text.

Try it — live request, no key required

Request
POSTapi.apiverve.com/v1/urlencode
Body
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "action": "encode",
    "original": "Hello World & Goodbye",
    "encoded": "Hello%20World%20%26%20Goodbye",
    "length": 29
  }
}

About the URL Encoder/Decoder API

URL Encoder/Decoder works by converting special characters and spaces into percent-encoded format (%XX) for safe URL transmission or decoding percent-encoded strings back to original text. Essential for query parameters and URL construction.

What people use it for

API Requests
Encode query parameters and URL components before making API requests to ensure proper formatting
Link Generation
Generate properly encoded URLs for links, redirects, and sharing with special characters or spaces
Form Handling
Encode form data for URL submission or decode URL-encoded form data received from submissions
Search Queries
Encode search terms and filters for URL-based search functionality and bookmarkable search results

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use URL Encoder/Decoder

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the URL Encoder/Decoder API.

Read the docs →
Does the API convert spaces and special characters into standard percent encoding?
Yes. It converts special characters and spaces into standard percent-encoded format (%XX) for safe URL transmission. This keeps web addresses valid when sending user input or custom values across HTTP requests.
Can I decode percent-encoded strings back into readable text?
Yes. The decoding endpoint takes percent-encoded strings and reverses them back to their original text and spaces. You can use it to parse incoming query parameters or reconstruct original inputs.
Which plan fits 50,000 URL encodings a month?
The Starter plan easily covers that volume. Each request costs 2 credits, so 50,000 calls use 100,000 credits, exactly half of Starter's monthly credit limit. That works out to about $0.0003 per call or $0.30 per 1,000 calls, while the Free plan includes 100 calls each month.
Is the character length of the result included on the Free plan?
No. The total character length of the output is a premium field reserved for paid plans. Free plan users receive the original text, the resulting encoded or decoded string, and the action performed, while upgrading to Starter or above adds the length metric.
Can this handle strings intended for search queries and form data?
Yes. You can pass raw strings from search boxes, form handling routines, or link builders to sanitize parameters before dispatching requests. It ensures any reserved or non-alphanumeric characters travel without breaking your URLs.

Ready to build with URL Encoder/Decoder? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs