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

Free lesson

6.6 (3 of 3): Metadata: data about data

The whole lesson, free. Read it and have a go at the activities. To work the tasks and labs in the real lesson, press Start lab, with no account needed.

40 minutes

A quick check that you are not a bot, then your own lab opens on the interactive lesson.

Already have an account? Sign in

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 about other data.Date, size and place of a photo
ContextFacts that say what data is about.Who, when, where
DictionaryIn Python, names (called keys) that each hold a value.{"place": "Brighton"}
DatabaseAn organised store of data in tables.A photo library
Personal dataFacts about a real, living person.A home address
KB and MBUnits for file size: kilobyte (KB) and megabyte (MB). 1 MB is 1000 KB.2400 KB is 2.4 MB
DataThe content itself.The picture

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

A photo and its metadata

Arrows go from "Photo file: beach.jpg" to "The data: the picture itself" and to "The metadata", and from "The metadata" to "Name: beach.jpg", "Size: 2400 KB", "Taken: 14 June 2026" and "Place: Brighton".Arrows go from "Photo file: beach.jpg" to "The data: the picture itself" and to "The metadata", and from "The metadata" to "Name: beach.jpg", "Size: 2400 KB", "Taken: 14 June 2026" and "Place: Brighton".

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

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.

Make a free account to save your work and track your progress.

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.

Make a free account to save your work and track your progress.

Metadata can be private

Warning

Many people think a photo holds only the picture. It can also store the place where you took it, and that can show where you live. Many sites remove this metadata when you upload. Still, check before you share a photo.

Data or metadata?

Have a go

Loading…

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

Your turn: build and read metadata

Each photo has metadata in a dictionary. Fill in the four functions. One builds a dictionary. One writes a sentence. Two search a list of photos. Press Run Tests to check.

Code: python
def make_metadata(name, size_kb, taken, place):
    # Give back a dictionary with four keys:
    # "name", "size_kb", "taken" and "place".
    return None


def describe(meta):
    # Give back text like: beach.jpg, 2400 KB, taken on 2026-06-14 at Brighton
    return ""


def biggest(files):
    # files is a list of metadata dictionaries.
    # Give back the name of the file with the largest size_kb.
    return None


def find_by_place(files, place):
    # Give back a list of the names of the files taken at that place, in order.
    return None

Make a free account to save your work, or press Start lab to work through the whole lesson.

Key words crossword

Have a go

Loading…

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

Watch: metadata

Press Play on the short film below. It starts with the photo on your phone, then shows a photo file, everyday things and four jobs, then one myth.

Film: metadata

Metadata: data about data

Every scene, as text

  1. Where was this photo taken? A photo on your phone. Its details: 14 June, Brighton, 2.4 MB, taken with your phone (the details: written by the phone). Metadata means data about data (metadata: the extra information).
  2. A photo and its metadata. Photo file: beach.jpg, with an arrow to The data: the picture itself (the data: the content itself) and an arrow to The metadata (the metadata: data about other data), with arrows to Name: beach.jpg, Size: 2400 KB, Taken: 14 June 2026 and Place: Brighton.
  3. Metadata in everyday things. The data and the metadata. A school file: the report; file name, size, who made it, last changed.
  4. What metadata is for. What it is, how big it is (job 1: describe). Who made it, when, where (job 2: context). Search for all photos from Brighton (job 3: find). Sort songs by artist (job 4: organise). A search for Brighton reads only the metadata.
  5. Myth (false): a photo holds only the picture. That is not true: a photo can also store the place where you took it. Photo taken at home, with an arrow labelled place to Your home address (Your home address: personal data). Check before you share a photo.

Final check

Have a go

Final check

5 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

Remember

Tip

Metadata is data about data. It describes, gives context, helps you find and helps you organise.

Teach this lesson with your class

On a college account your students work the tasks and the labs as well, and every mark is kept for you.