{"uid":"cap_hEfVZZXAutG99YmXjbz33","slug":"agent402-tools-url-encoder-decoder-edb66587","name":"agent402.tools URL Encoder/Decoder","description":"Percent-encode or decode a string for URLs. mode: encode (default) or decode. component: true (default) uses encodeURIComponent semantics.","url":"https://agent402.tools/api/url-code","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mode":{"type":"string","description":"encode | decode"},"text":{"type":"string","description":"Input text (max 100KB)"},"component":{"type":"boolean","description":"Use component encoding (default true)"}}},"responseSchema":{"type":"json","example":{"mode":"encode","result":"a%20b%26c"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_To-MZjnwPiqpGQzqDjK5w","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Percent-encodes or decodes a string for safe use in URLs, supporting both component and full URL encoding semantics.","exampleAgentPrompt":"Can you URL-encode this string using component encoding so I can safely put it in a query parameter: 'hello world & café=true'?","exampleUseCases":null,"resultDescription":"Returns the percent-encoded or decoded version of the input string, depending on the mode selected (encode or decode) and whether component encoding semantics were applied.","failureModes":["Input text exceeds 100KB limit — request rejected","Invalid mode value (not 'encode' or 'decode') — bad request error","Empty or missing text field — error or empty result","Network timeout for very large payloads near the size limit"],"whenToPreferThis":"Use this endpoint when you need reliable, standards-compliant percent-encoding or decoding of strings for URL construction, particularly when you need encodeURIComponent semantics to safely embed values in query parameters or path segments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:03.347Z","isFirstParty":false}