WebMCP Registry

base64_encoder

verifiedv0.1

Encodes or decodes Base64 of UTF-8 text in the browser (standard or URL-safe alphabet). Pass text (0–100000 chars), mode encode or decode, and optional urlSafe. Text only — no files, no data URIs. Variant URLs are not a second machine Tool — pass mode and urlSafe explicitly. Do not use this to hash text (that is hash_generator) or to build a QR image (that is qr_code).

Updated 9/3/2026 · Created 9/3/2026

Input Schema

{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "text"
  ],
  "properties": {
    "mode": {
      "enum": [
        "encode",
        "decode"
      ],
      "type": "string",
      "default": "encode"
    },
    "text": {
      "type": "string",
      "maxLength": 100000
    },
    "urlSafe": {
      "type": "boolean",
      "default": false
    }
  },
  "additionalProperties": false
}

Full Contract

{
  "name": "base64_encoder",
  "description": "Encodes or decodes Base64 of UTF-8 text in the browser (standard or URL-safe alphabet). Pass text (0–100000 chars), mode encode or decode, and optional urlSafe. Text only — no files, no data URIs. Variant URLs are not a second machine Tool — pass mode and urlSafe explicitly. Do not use this to hash text (that is hash_generator) or to build a QR image (that is qr_code).",
  "inputSchema": {
    "type": "object",
    "$schema": "http://json-schema.org/draft-07/schema#",
    "required": [
      "text"
    ],
    "properties": {
      "mode": {
        "enum": [
          "encode",
          "decode"
        ],
        "type": "string",
        "default": "encode"
      },
      "text": {
        "type": "string",
        "maxLength": 100000
      },
      "urlSafe": {
        "type": "boolean",
        "default": false
      }
    },
    "additionalProperties": false
  }
}

GET /api/tool/simpletoolstack.com/base64_encoder