Sample input
https://example.com/搜索?q=你好 世界
Percent-encode or decode URLs and query parameters, with automatic direction detection.
https://example.com/搜索?q=你好 世界
curl -X POST https://cn.toolkit.fun/api/v1/t/url-encode \
-H "Authorization: Bearer tk_..." \
-H "Content-Type: application/json" \
-d '{"input":"...","params":{}}'
MCP server: https://cn.toolkit.fun/api/mcp
Paste text and run with mode=encode or decode. scope=组件 encodes a single query parameter value; scope=整段 preserves separators in a full URL. Decoding treats + as a space. Invalid percent escapes report an error.
hello world&x=1
{"mode":"encode","scope":"组件"}
hello%20world%26x%3D1
hello%20world%26x%3D1
{"mode":"decode"}
hello world&x=1
Read the manifest first, then call the same run contract used by the web UI. The input, output, permissions, and receipt stay consistent across REST and MCP.
Manifest: https://cn.toolkit.fun/api/v1/registry/tools/url-encode/manifest REST: POST https://cn.toolkit.fun/api/v1/t/url-encode MCP: https://cn.toolkit.fun/api/mcp
Use this tool directly when you need URL Encode / Decode, want to chain it into a workflow, or want to expose it to an agent over REST API or MCP. This page carries the sample, call syntax, manifest, and version so search engines and generative retrieval can describe the tool accurately.
Percent-encode or decode URLs and query parameters, with automatic direction detection.
Percent-encode or decode URLs and query parameters, with automatic direction detection.
Click “Open workbench” to open URL Encode / Decode, provide your input, and run the tool.
Declared input type: text. Declared output type: text.