Skip to main content

Encoding Endpoints

Base64 Encode/Decode​

Encode or decode Base64 strings.

POST /api/v1/base64

Parameters​

NameTypeRequiredDescription
inputstringYesString to encode or decode
modestringYes"encode" or "decode"

Example​

curl -X POST https://www.toolbox-kit.com/api/v1/base64 \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"input": "Hello, World!", "mode": "encode"}'
{ "result": "SGVsbG8sIFdvcmxkIQ==" }

URL Encode/Decode​

URL-encode or decode strings.

POST /api/v1/url-encode

Parameters​

NameTypeRequiredDescription
inputstringYesString to encode or decode
modestringYes"encode" or "decode"

Example​

curl -X POST https://www.toolbox-kit.com/api/v1/url-encode \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"input": "hello world & foo=bar", "mode": "encode"}'
{ "result": "hello%20world%20%26%20foo%3Dbar" }

HTML Entities​

Encode or decode HTML entities.

POST /api/v1/html-entities

Parameters​

NameTypeRequiredDescription
inputstringYesString to encode or decode
modestringYes"encode" or "decode"

Example​

curl -X POST https://www.toolbox-kit.com/api/v1/html-entities \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"input": "<div class=\"test\">Hello</div>", "mode": "encode"}'
{ "result": "&lt;div class=&quot;test&quot;&gt;Hello&lt;/div&gt;" }