Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Preview

Metadata: data about data

This is the first page of the lesson. Read it and have a go at the activities. The rest is in the full lesson.

40 minutes

Where was this photo taken?

You find a photo on your phone. You do not remember when you took it.

You open its details. It says: 14 June, Brighton, 2.4 MB, taken with your phone. Nobody typed this. The phone wrote it for you.

That extra information about the photo is called metadata.

Metadata means data about data.

Key words

WordWhat it meansExample
MetadataData that describes other data. It is data about data.Date, size and place of a photo
ContextThe facts that tell you what a piece of data is about.Who, when, where
DictionaryIn Python, a set of names with a value for each name. The names are called keys.{"place": "Brighton"}
DatabaseA place where data is kept in tables.A photo library
Personal dataFacts about a real person, such as where they live.A home address
KB and MBUnits for file size. KB is kilobyte. MB is megabyte. 1 MB is 1000 KB.2400 KB is 2.4 MB
DataThe content itself, such as the picture in a photo.The picture

The cells students fill in are left blank in this preview.

Quick check: data or metadata?

Have a go

Quick check: data or metadata?

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Your answers are marked here and are not kept. A college account keeps every student’s marks.

Metadata in everyday things

ThingThe dataThe metadata
A photoThe pictureDate, place, size, camera
A songThe soundTitle, artist, album, length
A web pageThe words and picturesPage title, description, author, date
A school fileThe reportFile name, size, who made it, last changed
A text messageThe wordsWho sent it, to whom, what time

The cells students fill in are left blank in this preview.

What metadata is for

Metadata does four jobs.

  1. Describes the data: what it is, how big it is.
  2. Gives context: who made it, when, and where.
  3. Helps you find it: search for all photos from Brighton.
  4. Helps you organise it: sort songs by artist.

Try it: metadata in a dictionary

Code: python
photo = {
    "name": "beach.jpg",
    "size_kb": 2400,
    "taken": "2026-06-14",
    "place": "Brighton",
}

print(photo["place"])
print(photo["size_kb"] / 1000, "MB")

photo["place"] = "London"
print(photo)

# Add a new line with the key "camera" and run it again.

Try it: find photos by their metadata

Code: python
photos = [
    {"name": "beach.jpg", "size_kb": 2400, "place": "Brighton"},
    {"name": "pier.jpg", "size_kb": 3100, "place": "Brighton"},
    {"name": "coach.jpg", "size_kb": 1800, "place": "Leeds"},
    {"name": "lunch.jpg", "size_kb": 900, "place": "Brighton"},
    {"name": "group.jpg", "size_kb": 2700, "place": "Leeds"},
]

# Find the photos taken in Brighton. Only the metadata is read.
for photo in photos:
    if photo["place"] == "Brighton":
        print(photo["name"], photo["size_kb"], "KB")

# Change Brighton to Leeds and run it again.

Metadata can be private

data-callouts.warning.label

A photo can store the place where you took it. That can show where you live. Many sites remove this metadata when you upload. Check before you share a photo.

The lesson goes on

5 more parts of this lesson are in the full curriculum, with the tasks, the final check and the labs. A college account gives your students all of it.