Development
CSV Header Alias Resolver
Map messy CSV headers onto a clean target schema. Paste a CSV whose first row holds inconsistent column names (Customer ID, user_id, customerId, CUST_ID…) plus your target schema (one column per line) and an optional "alias=target" dictionary. Each source header is resolved through four layered passes — exact, dictionary, normalized (strips case/accents/separators/camelCase), then fuzzy edit-distance — and shown in a mapping table with method and confidence, plus target coverage and an optional normalized CSV export.
Quick start
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/csv-header-alias-resolver' \
-H 'Content-Type: application/json' \
-d '{"csvInput":"CUST_ID,First Name,e-mail,Phone Number\n1,Ada,[email protected],+1-555\n2,Linus,[email protected],+1-556","delimiter":",","targetSchema":"customerId\nfirstName\nemail\nphone","aliasDict":"cust id=customerId\ncustomer id=customerId\nphone number=phone","threshold":"0.8","outputCsv":true}'API reference
Send a POST request with your inputs as JSON. File parameters require a separate upload first.
Endpoint
POST https://api.elysiatools.com/en/api/tools/csv-header-alias-resolverParameters
| Name | Type | Required | Description |
|---|---|---|---|
| csvInput | textarea | Yes | — |
| delimiter | select | No | — |
| targetSchema | textarea | Yes | — |
| aliasDict | textarea | No | — |
| threshold | select | No | — |
| outputCsv |