{
  "slug": "remove-whitespace",
  "name": "gizza-ai/remove-whitespace",
  "version": "0.1.0",
  "title": "Remove Whitespace — Trim, collapse, or strip whitespace — gizza.ai",
  "description": "Trim leading/trailing whitespace, collapse extra spaces, or strip all whitespace from text, in your browser. Nothing is uploaded.",
  "tags": [
    "remove whitespace",
    "trim text",
    "collapse spaces",
    "strip spaces",
    "remove extra spaces"
  ],
  "category": "text",
  "urls": {
    "page": "https://gizza.ai/tools/remove-whitespace/",
    "markdown": "https://gizza.ai/tools/remove-whitespace/index.md",
    "descriptor": "https://gizza.ai/tools/remove-whitespace/tool.json",
    "deep_link_example": "https://gizza.ai/tools/remove-whitespace/?text=Paste%20text%20with%20extra%20whitespace%20here%E2%80%A6&mode=trim&collapse_blank_lines=true"
  },
  "cli": "gizza tool remove-whitespace \"Paste text with extra whitespace here…\"",
  "tool": {
    "description": "Clean up whitespace in text. mode='trim' (default) strips leading/trailing whitespace from each line and drops leading/trailing blank lines; mode='collapse' also squashes runs of inline spaces/tabs to a single space; mode='strip' removes every whitespace character (including Unicode spaces like NBSP) to produce one dense string. collapse_blank_lines collapses runs of blank lines. Runs locally — the text never leaves the device.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "collapse_blank_lines": {
          "default": false,
          "description": "When true, collapse runs of 2+ blank lines down to a single blank line. Ignored when mode is 'strip'.",
          "type": "boolean"
        },
        "mode": {
          "default": "trim",
          "description": "How to clean whitespace: 'trim' (default) strips leading/trailing whitespace from each line and removes leading/trailing blank lines while keeping internal spacing; 'collapse' also squashes runs of inline whitespace to a single space; 'strip' removes every whitespace character to produce one dense string.",
          "enum": [
            "trim",
            "collapse",
            "strip"
          ],
          "type": "string"
        },
        "text": {
          "description": "The text whose whitespace should be cleaned up.",
          "type": "string"
        }
      },
      "required": [
        "text"
      ],
      "type": "object"
    }
  }
}