{"uid":"cap_qIUbmq3s_KkYrPTb4hNbp","slug":"openverbs-text-encode-60ad43f5","name":"OpenVerbs Text Encode","description":"Encode a UTF-8 string into base64, base64url, hex, base32, or URL percent-encoding.","url":"https://text.openverbs.com/v1/encode","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["text","encoding"],"properties":{"text":{"type":"string","maxLength":1000000,"description":"The UTF-8 text to encode."},"encoding":{"enum":["base64","base64url","hex","base32","url"],"type":"string","description":"Target encoding, one of base64, base64url, hex, base32, url."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"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_JqjfUF_P6KXK3RkbWGuVg","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":"Encodes a UTF-8 string into base64, base64url, hex, base32, or URL percent-encoding format.","exampleAgentPrompt":"Can you base64-encode this string for me: 'Hello, World! This is my API key payload.'","exampleUseCases":[{"title":"Encode payload for HTTP header","prompt":"I need to encode the string 'username:mypassword123' in base64 so I can use it in a Basic Auth header — can you do that?"},{"title":"URL-encode query parameter value","prompt":"I have this text that I need to put in a URL query string: 'search query with spaces & special chars like = and #'. Can you URL percent-encode it for me?"},{"title":"Convert binary data to hex for logging","prompt":"Encode this string as hex for me so I can log it safely: '\\x00\\x01\\x02 some raw bytes followed by text'."}],"resultDescription":"Returns the encoded representation of the input string in the requested encoding format (base64, base64url, hex, base32, or URL percent-encoding) as a string.","failureModes":["Input text exceeds 1,000,000 character limit — request rejected","Invalid or unsupported encoding type specified — validation error","Malformed JSON request body — 400 bad request","Payment not included or insufficient — 402 payment required","Non-UTF-8 input may cause encoding errors"],"whenToPreferThis":"Use this endpoint when you need a reliable, API-accessible way to encode strings without running local code — ideal for agents operating in environments without native encoding libraries, or when you need a consistent, tested encoding implementation across base64, base64url, hex, base32, and URL percent-encoding formats. It pairs naturally with the sibling decode endpoint on the same service.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:30:24.540Z","isFirstParty":false}