Profile columns, add descriptions, export the lot

Data Dictionary Generator

Drop a CSV, an Excel workbook (every sheet) or JSON samples and get a data dictionary: inferred type, nullability, uniqueness, examples, range and allowed values for each column, with a description box you fill in before exporting to Markdown, Word, Excel or JSON Schema.

Source

Drop a CSV, XLSX or JSON file

.csv, .tsv, .xlsx, .json or .jsonl, up to 25 MB

Choose a file or load the example to see the dictionary.

Data Dictionary Generator

Operator: Abdulla Al Fahad. How tools are built and checked

A dataset handed over without documentation raises the same five questions about every column: what type is it, can it be empty, is it a key, which values does it hold, and what does it mean. The first four can be answered from the data. This page answers them for every column and leaves a box for the fifth.

Drop a CSV, a TSV, an Excel workbook (each sheet becomes a table, up to 30) or JSON samples, and each column is profiled in one pass: the strictest type that every non-empty value fits, the empty count, distinct count, uniqueness, the three most frequent examples, the range or length, and a code list when the column holds few values.

The descriptions you type are written into all four exports: Markdown, Word, Excel and JSON Schema.

Key features

  • Types integer, decimal, boolean, date, datetime, text, array, object, mixed and empty, with a note when most values fit a stricter type
  • Whole-column text formats recognised: email, uuid, uri and ipv4
  • Columns that are unique and never empty counted as possible keys
  • Every sheet of a workbook, JSON arrays with nested objects flattened to dotted names, and JSON Lines
  • Descriptions per column and per table carried into Markdown, DOCX, XLSX and JSON Schema

How each column type is decided

A column is integer when every non-empty value is a whole number without leading zeros, decimal when every value is a number, boolean for true, false, yes and no, date when every value is YYYY-MM-DD (or a day/month/year slash date, flagged as order not stated) and datetime for ISO 8601 with a time. Anything else is text, so 02134 stays text instead of becoming the number 2134, and a column with 98% integers and two stray words is text with a note saying so.

Empty means a blank cell and, with the placeholder option on (the default), also NULL, NaN, N/A, NA, none, nil, - and (null). A code list appears when a text or integer column has 12 or fewer distinct values, at least 20 non-empty rows, and distinct values no more than half the rows. Uniqueness is tracked for up to 300,000 distinct values per column, or 20,000 in a very large table, and reads unknown beyond that.

How it works

Each column is scanned once. Every cell is tested against the integer, decimal, boolean, date, datetime, email, uuid, url and ipv4 patterns while counts, lengths, the smallest and largest numbers or ISO dates, and a frequency map are updated. The type is chosen from those counts afterwards, which is why one stray value turns a column to text and the note says how many values did not fit.

JSON samples are flattened first: nested objects become address.city style columns up to six levels deep, arrays and deeper objects are kept as JSON text and typed array or object, and a field that is a number in some records and a string in others is typed mixed.

Typical uses

  • A workbook with 12 sheets becomes 12 tables in one Markdown file. The sheet picker switches the table on screen, and the Markdown, Word and Excel exports cover all 12.
  • A backend developer pastes four sample API records. address.zip is nullable text because one record has null, id is a unique integer, and the JSON Schema lists id, email, plan, signup, seats, active and address.city as required.
  • A data owner hands an export to a vendor with descriptions typed for each status code, and the Word export gives a landscape table for each sheet.
  • A migration lead scans the Possible keys tile to shortlist primary keys. On the four-record example id, email, signup and seats are all unique and never empty, so four columns qualify and the shortlist needs a human eye, while address.zip is unique but has an empty value.

Building one

  1. Drop a file or paste JSON samples.
  2. Read the profile table and use the type notes to spot columns with stray values.
  3. Fill in a description for each column and for the table, and set the document title.
  4. Download Markdown, Word, Excel, or the JSON Schema for the selected sheet.

Example

Four sample API records for a subscriptions endpoint, pasted as JSON

[{ "id": 1001, "email": "ana@example.com", "plan": "pro", "signup": "2024-01-15", "seats": 5, "active": true, "address": { "city": "Lisbon", "zip": "1100-148" } },
 { "id": 1002, "email": "ben@example.com", "plan": "free", "signup": "2024-02-03", "seats": 1, "active": true, "address": { "city": "Porto", "zip": null } },
 { "id": 1003, ... "seats": 12, "active": false, "address": { "city": "Lisbon", "zip": "1000-001" } },
 { "id": 1004, ... "signup": "2024-03-11", "seats": 3 ... }]

Dictionary rows

id: integer, unique, range 1001 to 1004
email: text (email format), unique
signup: date (YYYY-MM-DD), unique, range 2024-01-15 to 2024-03-11
seats: integer, unique, range 1 to 12
active: boolean
address.city: text, 3 distinct values
address.zip: text, 1 empty (25%), unique

Things to check before you rely on it

Types describe the sample you loaded. A column that is integer here may hold text next year, because the dictionary documents what the data contains and not what a source system promises.

Day/month/year dates cannot be told from month/day/year, so such a column is typed date with the order left unstated, no range is shown, and the JSON Schema leaves out the date format.

  • The JSON Schema export covers the selected sheet only, while the Markdown, Word and Excel exports cover every sheet.
  • Examples are the three most frequent values, not random ones, so a typo that occurs often will appear there.

Best practices

  • Write descriptions in business terms and units, such as order total in EUR including VAT, because the profile already states the type and the range.

How the exports are written

Markdown cells are escaped: backslashes, pipes, backticks, asterisks, underscores, brackets, tildes, hash signs, angle brackets and ampersands are neutralised and line breaks become spaces, so a description containing | or <b> cannot break the table or add markup. The Excel file has a Tables sheet and a Columns sheet with a frozen header and filters, and the Word file is landscape with one table per sheet.

The JSON Schema is draft 2020-12, with minimum, maximum, enum, format, minLength and maxLength taken from the profile, null added to the type of a column that had empty cells, and required listing the columns that were never empty.

Frequently asked questions

Why is a column reported as datetime with some values date only?

ISO 8601 allows a date with or without a time. When some values carry a time and others do not, the strictest type that fits every value is datetime, and the note records that mix.

Does it detect personal data?

No. A column of email-shaped values is labelled with the email format, but names, addresses and identifiers are not classified.

How is this different from CSV Data Quality Report here?

That report concentrates on problems: missing values, duplicates, outliers and mixed types. This page produces documentation you can edit and hand over, with descriptions and four export formats, and it reads every Excel sheet and JSON samples as well.