{
  "slug": "data-uri-encode",
  "name": "gizza-ai/data-uri-encode",
  "version": "0.1.0",
  "title": "Data URI Encoder — Text to data: URI — gizza.ai",
  "description": "Turn text into a self-contained data: URI with a chosen MIME type and Base64 or percent encoding. No sign-up, runs offline in your browser.",
  "tags": [
    "data-uri",
    "base64",
    "encode",
    "mime",
    "css",
    "svg"
  ],
  "category": "image",
  "urls": {
    "page": "https://gizza.ai/tools/data-uri-encode/",
    "markdown": "https://gizza.ai/tools/data-uri-encode/index.md",
    "descriptor": "https://gizza.ai/tools/data-uri-encode/tool.json",
    "deep_link_example": "https://gizza.ai/tools/data-uri-encode/?text=Hello%2C%20World%21&mime=text%2Fplain&encoding=base64"
  },
  "cli": "gizza tool data-uri-encode \"Hello, World!\"",
  "tool": {
    "description": "Build a self-contained 'data:' URI (RFC 2397) from text, for inline embedding in CSS url(...), an <img src>, a JSON payload, or an email. Pass the content as 'text', the media type as 'mime' (default 'text/plain'), and 'encoding' as 'base64' (default) or 'url'. Returns the data: URI plus its mime, encoding, input byte count, and URI length.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "encoding": {
          "default": "base64",
          "enum": [
            "base64",
            "url"
          ],
          "type": "string"
        },
        "mime": {
          "default": "text/plain",
          "type": "string"
        },
        "text": {
          "type": "string"
        }
      },
      "required": [
        "text"
      ],
      "type": "object"
    }
  }
}