Codebook
Generate a codebook
Turn a .sav or .dta file into a clean data dictionary — every variable, its labels, and summary statistics — then export it as Markdown. Nothing is uploaded.
Drop your file here, or browse
SPSS .sav or Stata .dta file
Processed on your device — never uploaded
Documentation your collaborators can actually read
When you share a dataset, the numbers are only half the story. Without a codebook, a column called q7 coded 1–5 is a mystery. A good data dictionary records what each variable means and what its codes stand for, which is essential for reproducible research, for handing a project to a new team member, or for depositing data in a repository.
statfile.tools reads the labels already embedded in your SPSS or Stata file and lays them out as a structured codebook, complete with per-variable statistics. Need the underlying data as well? You can convert it to CSV, Excel, or JSON from the same file.
Frequently asked questions
What is a codebook?+
A codebook (or data dictionary) documents a dataset: for each variable it records the name, a description, the type, the value labels that explain coded categories, and basic statistics. It lets someone understand the data without opening it in SPSS or Stata.
What does the generated codebook include?+
For every variable: position, name, label, type and format, the full set of value labels, and summary statistics (valid and missing counts, unique values, and for numeric variables the min, max, mean, and standard deviation).
Can I export the codebook?+
Yes. Download it as a Markdown file, which renders cleanly on GitHub, in documentation, or in any Markdown editor, and converts easily to PDF or Word.
Is my data uploaded?+
No. The file is parsed in your browser and the codebook is built locally. Nothing is sent to a server.