base64 · v1

Base64 Encode / Decode

Convert between Base64 and plain text, auto-detect direction, and handle UTF-8 correctly.

Run now REST API / MCP Manifest

Sample input

aGVsbG8gd29ybGQ=

API / MCP call

curl -X POST https://cn.toolkit.fun/api/v1/t/base64 \
  -H "Authorization: Bearer tk_..." \
  -H "Content-Type: application/json" \
  -d '{"input":"...","params":{}}'

MCP server: https://cn.toolkit.fun/api/mcp

Usage and examples

Paste text and run with mode=encode or mode=decode. auto guesses the direction from characters and length; choose an explicit mode for predictable results. UTF-8 is supported. Base64 is not encryption.

Example 1

Input
你好
Parameters
{"mode":"encode"}
Expected output
5L2g5aW9

Example 2

Input
5L2g5aW9
Parameters
{"mode":"decode"}
Expected output
你好

Shortest path for an agent

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/base64/manifest
REST: POST https://cn.toolkit.fun/api/v1/t/base64
MCP: https://cn.toolkit.fun/api/mcp

Who it is for

Use this tool directly when you need Base64 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.

Notes

Convert between Base64 and plain text, auto-detect direction, and handle UTF-8 correctly.

Frequently asked questions

What does Base64 Encode / Decode do?

Convert between Base64 and plain text, auto-detect direction, and handle UTF-8 correctly.

How do I use Base64 Encode / Decode online?

Click “Open workbench” to open Base64 Encode / Decode, provide your input, and run the tool.

What input and output does Base64 Encode / Decode use?

Declared input type: text. Declared output type: text.