{"uid":"cap_m8wPlXxT1bTKwUcCbiD1I","slug":"agenttools-url-encoder-decoder-ddaedb38","name":"AgentTools URL Encoder / Decoder","description":"Percent-encode text for safe inclusion in URLs and query strings, or decode percent-encoded text back. Uses the standard encodeURIComponent rules. Use this when an agent needs to percent-encoding for query strings and URLs.","url":"https://agentstoolshub.com/api/v1/dev/url-encoder?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["text"],"properties":{"op":{"enum":["encode","decode"],"type":"string","description":"Direction"},"text":{"type":"string","description":"Text"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_s_6RVe0JVOVn5pCVJs4ha","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Percent-encodes plain text for safe use in URLs and query strings, or decodes percent-encoded text back to plain text, using standard encodeURIComponent rules.","exampleAgentPrompt":"Can you percent-encode the string 'hello world & welcome!' so I can safely use it in a URL query parameter?","exampleUseCases":[{"title":"Encoding a search query for a URL","prompt":"I need to append the user's search phrase 'café & résumé tips' to a URL as a query parameter — can you percent-encode it for me?"},{"title":"Decoding a percent-encoded API response value","prompt":"I got this value back from an API: 'caf%C3%A9%20menu%20%26%20prices' — can you decode it back to plain text?"},{"title":"Sanitizing user input before URL construction","prompt":"A user typed 'rock & roll / classic hits' into a search box and I need to build a URL with it — please encode that string so it's safe to include in the query string."}],"resultDescription":"Returns the transformed string — either the percent-encoded version of the input text (with spaces as %20, special characters as their hex equivalents, etc.) or the decoded plain-text version of a percent-encoded input, following standard encodeURIComponent rules.","failureModes":["Missing required 'text' query parameter returns an error","Invalid 'op' value (not 'encode' or 'decode') returns a validation error","Passing already-encoded text to encode may double-encode it","Passing malformed percent sequences to decode may return an error or partial result"],"whenToPreferThis":"Use this endpoint when an agent needs to programmatically encode or decode URL components without running code locally — especially in no-code or low-code agent workflows where JavaScript's encodeURIComponent is unavailable. Prefer it over custom logic when strict RFC-compliant percent-encoding is needed for query strings.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:49:13.647Z","isFirstParty":false,"canonicalSlug":"agenttools-url-encoder-decoder-ddaedb38"}