{
  "slug": "csv-reorder-columns",
  "name": "gizza-ai/csv-reorder-columns",
  "version": "0.1.0",
  "title": "CSV Reorder Columns — Reorder, swap & drop columns — gizza.ai",
  "description": "Reorder, swap, or drop CSV columns by name or index to a target order, in your browser. Free, private, no upload.",
  "tags": [
    "csv reorder columns",
    "rearrange csv",
    "drop csv columns",
    "swap columns",
    "select columns"
  ],
  "category": "data",
  "urls": {
    "page": "https://gizza.ai/tools/csv-reorder-columns/",
    "markdown": "https://gizza.ai/tools/csv-reorder-columns/index.md",
    "descriptor": "https://gizza.ai/tools/csv-reorder-columns/tool.json",
    "deep_link_example": "https://gizza.ai/tools/csv-reorder-columns/?data=name%2Cage%2Ccity%0AAda%2C36%2CLondon&columns=city%2Cname&header=true&delimiter=%2C"
  },
  "cli": "gizza tool csv-reorder-columns \"name,age,city\nAda,36,London\" 'columns=city,name'",
  "tool": {
    "description": "Reorder, swap, or drop the columns of a CSV to match a target order. `columns` is a comma-separated list of column names (when header=true) or 1-based indices; columns are output in that order, omitted columns are dropped, and a repeated column is duplicated. delimiter is a single char or comma/tab/semicolon/pipe. Runs locally.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "columns": {
          "description": "Target column order, comma-separated: column names (when header=true) or 1-based indices. Columns you omit are dropped; repeat a column to duplicate it. e.g. 'name,city' or '3,1'.",
          "type": "string"
        },
        "data": {
          "description": "The CSV text.",
          "type": "string"
        },
        "delimiter": {
          "default": ",",
          "description": "Field separator: a single char or 'comma'/'tab'/'semicolon'/'pipe'. Default ','.",
          "type": "string"
        },
        "header": {
          "default": true,
          "description": "Treat the first row as a header so columns can be named (default true). With false, use 1-based indices.",
          "type": "boolean"
        }
      },
      "required": [
        "data",
        "columns"
      ],
      "type": "object"
    }
  }
}