{
  "slug": "strip-ansi-codes",
  "name": "gizza-ai/strip-ansi-codes",
  "version": "0.1.0",
  "title": "Strip ANSI Codes — Remove Terminal Color Escape Codes — gizza.ai",
  "description": "Remove ANSI escape and color codes from terminal output and CI logs instantly in your browser. Strip everything or only colors. Free, private, no sign-up.",
  "tags": [
    "strip ansi",
    "remove ansi codes",
    "ansi escape codes",
    "terminal colors",
    "clean log output",
    "ci log cleaner",
    "remove color codes",
    "sgr codes",
    "escape sequence"
  ],
  "category": "text",
  "urls": {
    "page": "https://gizza.ai/tools/strip-ansi-codes/",
    "markdown": "https://gizza.ai/tools/strip-ansi-codes/index.md",
    "descriptor": "https://gizza.ai/tools/strip-ansi-codes/tool.json",
    "deep_link_example": "https://gizza.ai/tools/strip-ansi-codes/?text=%5Cu001b%5B1%3B32m%E2%9C%93%20build%20passed%5Cu001b%5B0m&scope=all"
  },
  "cli": "gizza tool strip-ansi-codes '\\u001b[1;32m✓ build passed\\u001b[0m'",
  "tool": {
    "description": "Remove ANSI escape and color codes from terminal output, leaving clean readable text. scope='all' (default) strips every escape sequence (colors, cursor/erase control, OSC strings); scope='color' strips only SGR color/style codes and keeps cursor/erase control.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "scope": {
          "default": "all",
          "description": "What to remove: 'all' or 'color'.",
          "enum": [
            "all",
            "color"
          ],
          "type": "string"
        },
        "text": {
          "description": "The terminal text (with ANSI escape codes) to clean.",
          "type": "string"
        }
      },
      "required": [
        "text"
      ],
      "type": "object"
    }
  }
}