# CSV fuzzy match

- Human page: https://happytails.ai/en/data-tools/csv-fuzzy-match/
- Markdown: https://happytails.ai/en/data-tools/csv-fuzzy-match.md
- Structured JSON: https://happytails.ai/agents/en/data-tools/csv-fuzzy-match/index.json
- Visibility: public

## Tool capabilities

| Property | Value |
| --- | --- |
| Tool ID | `csv-fuzzy-match` |
| Category | data-tools |
| Implementation | Registered implementation. Registration alone is not a production-quality guarantee. |
| Browser execution | Use the visible action or interactive controls. |
| Browser processing | Browser; see tool notes for network behavior. |
| HTTP API | Not callable through HTTP. |
| Browser-agent interface | run_current_tool |

### Implementation notes

Runs locally on your device. CSV requires unique nonempty headers. Up to 1,000,000 characters, 10,000 data records and 100,000 cells across inputs, with 100 columns. Quoted multiline cells are supported. Each JSON settings field is limited to 100,000 characters. Output files are bounded to 4,000,000 characters. Diagnostic reports contain at most 500 findings and disclose the omitted count. Suggest near matches using Unicode code-point Levenshtein distance. Up to 25,000 candidate pairs, 256 code points per selected cell and 5,000,000 estimated edit-distance cells. Empty fields are skipped. Suggestions require human review and never merge records. Ties keep right-source order. Runs in cancellable chunks. Protect spreadsheet cells prefixes formula-like values, including negative numbers, with an apostrophe. Choose Preserve original cells only for a trusted import workflow.

### Inputs and settings

Text input: Left CSV.

Example or placeholder shown in the interface (not a validated fixture):

```text
name
kitten
```

Paste CSV data with unique column headers. Quoted multiline cells are supported. Up to 1,000,000 characters. Review the settings before running.

| Setting | Meaning | Control type | Default | Constraints |
| --- | --- | --- | --- | --- |
| `separator` | Input CSV separator | select | "," | Allowed: ,, ;, 	 |
| `comparison` | Comparison CSV | textarea | "id,amount\nA,10.00\nB,3.50\n" |  |
| `leftField` | Left match column | text | "name" |  |
| `rightField` | Right match column | text | "name" |  |
| `normalization` | Text comparison | select | "Trim and lowercase" | Allowed: Exact characters, Trim and lowercase, NFKC, trim and lowercase |
| `minimum` | Minimum similarity (%) | number | 80 | min=0 max=100 |
| `maximum` | Suggestions per left record | number | 3 | min=1 max=10 step=1 |
| `outputSafety` | CSV output cells | select | "Protect spreadsheet cells" | Allowed: Protect spreadsheet cells, Preserve original cells |

### Browser-agent workflow

1. Open the human page in a browser that supports WebMCP.
2. Discover the interface exposed by that page; use its actual schema.
3. Select files on the page first when the tool requires files.
4. Call `run_current_tool` with valid input and settings.
5. Inspect the returned result or error and the displayed output. Retrieve files from the displayed download links.

Calls do not automatically copy or download results. Browser permissions still apply. Interface availability alone is not proof of successful execution.

### Planning specification

Uses Unicode code-point Levenshtein distance. Similarity is 100 times one minus distance divided by the longer normalized length. Suggestions never automatically merge records; a right-side record may match several source records. Up to 1,000,000 characters, 10,000 data records, 100 columns and 100,000 cells across the sources. Files for multi-source tools are limited to 4,000,000 bytes total. Reports retain at most 500 diagnostic findings and state any omitted count. CSV and JSON outputs are limited to 4,000,000 characters. Fuzzy matching additionally limits selected cells to 256 code points, comparisons to 25,000 pairs and estimated edit-distance work to 5,000,000 cells. Output is budgeted incrementally before retaining each row; expanded decimal output counts toward the same 4,000,000-character limit even when input uses short exponent notation.

This describes intended requirements. Use the implementation notes, interface schema and observed output to determine current support.

### Complete machine-readable capability record

```json
{
  "id": "csv-fuzzy-match",
  "category": "data-tools",
  "built": true,
  "requirements": "Uses Unicode code-point Levenshtein distance. Similarity is 100 times one minus distance divided by the longer normalized length. Suggestions never automatically merge records; a right-side record may match several source records. Up to 1,000,000 characters, 10,000 data records, 100 columns and 100,000 cells across the sources. Files for multi-source tools are limited to 4,000,000 bytes total. Reports retain at most 500 diagnostic findings and state any omitted count. CSV and JSON outputs are limited to 4,000,000 characters. Fuzzy matching additionally limits selected cells to 256 code points, comparisons to 25,000 pairs and estimated edit-distance work to 5,000,000 cells. Output is budgeted incrementally before retaining each row; expanded decimal output counts toward the same 4,000,000-character limit even when input uses short exponent notation.",
  "implementation": {
    "fields": [
      {
        "key": "separator",
        "label": "Input CSV separator",
        "value": ",",
        "type": "select",
        "values": [
          ",",
          ";",
          "\t"
        ]
      },
      {
        "key": "comparison",
        "label": "Comparison CSV",
        "value": "id,amount\nA,10.00\nB,3.50\n",
        "type": "textarea",
        "help": "Paste the second table, including its header row. Both tables use the selected separator."
      },
      {
        "key": "leftField",
        "label": "Left match column",
        "value": "name",
        "type": "text"
      },
      {
        "key": "rightField",
        "label": "Right match column",
        "value": "name",
        "type": "text"
      },
      {
        "key": "normalization",
        "label": "Text comparison",
        "value": "Trim and lowercase",
        "type": "select",
        "values": [
          "Exact characters",
          "Trim and lowercase",
          "NFKC, trim and lowercase"
        ]
      },
      {
        "key": "minimum",
        "label": "Minimum similarity (%)",
        "value": 80,
        "type": "number",
        "min": 0,
        "max": 100
      },
      {
        "key": "maximum",
        "label": "Suggestions per left record",
        "value": 3,
        "type": "number",
        "min": 1,
        "max": 10,
        "step": 1
      },
      {
        "key": "outputSafety",
        "label": "CSV output cells",
        "value": "Protect spreadsheet cells",
        "type": "select",
        "values": [
          "Protect spreadsheet cells",
          "Preserve original cells"
        ]
      }
    ],
    "live": false,
    "presentation": "metrics",
    "note": "Runs locally on your device. CSV requires unique nonempty headers. Up to 1,000,000 characters, 10,000 data records and 100,000 cells across inputs, with 100 columns. Quoted multiline cells are supported. Each JSON settings field is limited to 100,000 characters. Output files are bounded to 4,000,000 characters. Diagnostic reports contain at most 500 findings and disclose the omitted count. Suggest near matches using Unicode code-point Levenshtein distance. Up to 25,000 candidate pairs, 256 code points per selected cell and 5,000,000 estimated edit-distance cells. Empty fields are skipped. Suggestions require human review and never merge records. Ties keep right-source order. Runs in cancellable chunks. Protect spreadsheet cells prefixes formula-like values, including negative numbers, with an apostrophe. Choose Preserve original cells only for a trusted import workflow.",
    "experience": {
      "automatic": false,
      "single": false,
      "inputMaxLength": 1000000,
      "inputMode": "text",
      "label": "Left CSV",
      "placeholder": "name\nkitten",
      "help": "Paste CSV data with unique column headers. Quoted multiline cells are supported. Up to 1,000,000 characters. Review the settings before running.",
      "action": null
    },
    "mode": "explicit",
    "interactive": false
  },
  "execution": "Browser interface",
  "api": null,
  "browser_agent": {
    "supported": true,
    "name": "run_current_tool",
    "discovery": "WebMCP on the human page in a supporting browser",
    "verification": "See audit/API-AUDIT.md; availability is not verification"
  }
}
```

## Page guide

Find near-matching text records in two CSV files and review scored suggestions.

How can we improve this tool?

Report a problem or share an idea.

Please leave out private information. Your message and the tool name go to our team via PostHog.

### How to use CSV fuzzy match

1. Paste both CSV tables and select their text match columns.
2. Choose normalization, minimum similarity and suggestions per source row.
3. Review the suggested pairs before making any changes to the source data.

## Useful next steps

- [CSV reconciliation report](https://happytails.ai/en/data-tools/csv-reconciliation-report/) ([Markdown](https://happytails.ai/en/data-tools/csv-reconciliation-report.md))

- [Dataset value mapper](https://happytails.ai/en/data-tools/dataset-value-mapper/) ([Markdown](https://happytails.ai/en/data-tools/dataset-value-mapper.md))

## Prepare the source

Paste both CSV tables and select their text match columns.

### Choose the matching rules

Choose normalization, minimum similarity and suggestions per source row.

### Review and keep the result

Review the suggested pairs before making any changes to the source data. Uses Unicode code-point Levenshtein distance. Similarity is 100 times one minus distance divided by the longer normalized length. Suggestions never automatically merge records; a right-side record may match several source records.
