Guides · For students and researchers

How to make a codebook for qualitative research (with a free template)

A codebook is the list of codes you use to label your interviews or survey answers, with a clear meaning for each. It keeps your coding consistent, and it's often what examiners look for in your methods chapter and appendix. Here's how to build one, with a template to copy.

About a 7-minute read · For dissertations and research projects

1

What goes in a codebook

Each code gets a row with:

  • Code name: a short label, such as "Distrust of banks".
  • Definition: one sentence on what the code means.
  • When to use it: what counts, and what doesn't. This is what keeps you consistent across 10 interviews.
  • Example quote: a real line from your data that fits.
  • Theme: the bigger idea it belongs to, added once themes appear.
2

A codebook template to copy

Copy this into a Google Doc or Sheet and replace the examples (these are made up).

CodeDefinitionUse whenExample quoteTheme
Distrust of banksDoubt that banks act in the person's interestSays they avoid or don't believe banks. Not for general money worries"I never really trusted them again."Trust in institutions
Family as safety netRelying on relatives for money or helpFamily gives or lends money, or handles finances"My mum lent me the money."Family support
Feeling powerlessFeeling unable to change the situationDescribes having no control or no one listening"Like nobody was listening."Loss of control
3

How to build yours, step by step

  1. Read everything once first without coding. Note ideas that keep coming up.
  2. Decide your approach. Inductive means codes come from the data. Deductive means you start with codes from theory or your research questions. Many dissertations mix both.
  3. Code two transcripts and add each new code to the codebook as you go.
  4. Tidy up. Merge codes that mean the same thing, split ones that are too broad, and write the "use when" column.
  5. Code the rest using the codebook. Add new codes only when nothing fits, and recheck earlier transcripts if you do.
  6. Group codes into themes and fill in the last column.

Keep old versions (save a copy each time you make big changes). Showing how your codebook developed is good evidence of a careful analysis.

4

How to mention it in your dissertation

In your methods chapter, a sentence or two is enough: say whether coding was inductive, deductive or both, that you kept a codebook with definitions and examples, and how it changed. Put the final codebook in an appendix. If you're using Braun and Clarke's thematic analysis, this fits their phases of generating codes and reviewing themes. For more, see how to do thematic analysis in Google Docs.

Want the codebook to build itself?

Themely is a Google Docs add-on for coding interviews. Highlight words in a transcript and click a code. Themely keeps your codebook, groups codes into themes, and collects every quote under its theme. One click makes a findings report and quote tables for your appendix.

Add Themely to Google Docs

Free for 3 interviews. Dissertation Pass £9 for 6 months. See how it works

Questions students ask

How many codes should I have?

There's no fixed number. Small dissertation projects often end up with roughly 20 to 40 codes grouped into 3 to 6 themes. Too many codes usually means some should be merged.

What's the difference between a code and a theme?

A code labels one idea in a quote, like "family as safety net". A theme is a bigger pattern that several codes point to, like "family support".

Do I need NVivo to make a codebook?

No. A table in Google Docs or Sheets works fine. See our free NVivo alternatives guide.

More guides