Free plan

Anonymize Data

Hide names, e-mails and phone numbers so a table is safe to share
POST
/v1/data/anonymize

About this tool

This tool hides personal details in a table. For each column you choose what to do: mask it, replace it with made-up values, mix it up or remove it. It can also find columns that look personal, such as names, e-mails or phone numbers. Check the result before sharing, since not every detail can be found by itself.
For example, you give a test team a customer list in which the names and e-mails are no longer real.

How to use it

  1. Choose this tool.
  2. Add your table file, such as CSV or Excel.
  3. Turn on finding personal columns, or choose what to do with each column.
  4. Press Generate.
  5. Check the result and download it.

What you get back

You get a new table file with the personal details hidden, to download. Your original file is not changed.
GOOD TO KNOW
One file in, one result out. Automatic detection is a helper, not a guarantee: check the `anonymized` list and add rules for anything it missed.
TEST IT LIVE

Try Anonymize Data in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
Data
Plan
Free
Method
POST
Endpoint
/v1/data/anonymize
Tool ID
data.anonymize
Authentication
API key
Accepts
XLSX, ODS, MD, HTML, XLS, CSV +9 more
Background jobs
Yes
Usage group
Data
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/data/anonymize" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'file=@document.pdf' \
  -F 'rules=[{"column":"name","method":"pseudonym"},{"column":"email","method":"mask"}]' \
  -F 'seed=0' \
  -F 'to=xlsx'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.data.anonymize({
    "file": 'document.pdf',
    "rules": "[{\"column\":\"name\",\"method\":\"pseudonym\"},{\"column\":\"email\",\"method\":\"mask\"}]",
    "seed": 0,
    "to": "xlsx"
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->data()->anonymize([
    'file' => 'document.pdf',
    'rules' => '[{"column":"name","method":"pseudonym"},{"column":"email","method":"mask"}]',
    'seed' => 0,
    'to' => 'xlsx',
]);
echo $result->requestId;
FAQ

Frequently asked questions

Hide personal details in a data file so it is safe to share: mask, replace, scramble or remove names, emails, phone numbers and other columns. It can find the personal columns by itself.

Anonymize Data accepts XLSX, ODS, MD, HTML, XLS, CSV, JSON, XML, TSV, NDJSON, YAML, TOML and 3 more. You can send several files in one request.

Anonymize Data is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/data/anonymize with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.