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
| Word | What it means | Example |
|---|---|---|
| Metadata | Data about other data. | Date, size and place of a photo |
| Context | Facts that say what data is about. | Who, when, where |
| Dictionary | In Python, names (called keys) that each hold a value. | {"place": "Brighton"} |
| Database | An organised store of data in tables. | A photo library |
| Personal data | Facts about a real, living person. | A home address |
| KB and MB | Units for file size: kilobyte (KB) and megabyte (MB). 1 MB is 1000 KB. | 2400 KB is 2.4 MB |
| Data | The content itself. | The picture |
The cells students fill in are left blank in this preview.
A photo and its metadata
%22%2F%3E%3Cpath%20d%3D%22M%20304%20100%20L%20392%20137%22%20fill%3D%22none%22%20stroke%3D%22%233a3a3c%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20marker-end%3D%22url(%23head)%22%2F%3E%3Cpath%20d%3D%22M%20393%20192%20V%20214%20H%20256%20V%20436%22%20fill%3D%22none%22%20stroke%3D%22%233a3a3c%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M%20256%20256%20L%20277%20256%22%20fill%3D%22none%22%20stroke%3D%22%233a3a3c%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20marker-end%3D%22url(%23head)%22%2F%3E%3Cpath%20d%3D%22M%20256%20316%20L%20277%20316%22%20fill%3D%22none%22%20stroke%3D%22%233a3a3c%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20marker-end%3D%22url(%23head)%22%2F%3E%3Cpath%20d%3D%22M%20256%20376%20L%20277%20376%22%20fill%3D%22none%22%20stroke%3D%22%233a3a3c%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20marker-end%3D%22url(%23head)%22%2F%3E%3Cpath%20d%3D%22M%20256%20436%20L%20277%20436%22%20fill%3D%22none%22%20stroke%3D%22%233a3a3c%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20marker-end%3D%22url(%23head)%22%2F%3E%3Cpath%20d%3D%22M%20130%2031%20V%2091%20A%20120%2012%200%200%200%20370%2091%20V%2031%20Z%22%20fill%3D%22%23000000%22%20fill-opacity%3D%220.06%22%2F%3E%3Cpath%20d%3D%22M%20130%2028%20V%2088%20A%20120%2012%200%200%200%20370%2088%20V%2028%20A%20120%2012%200%200%200%20130%2028%20Z%22%20fill%3D%22%23ffffff%22%20stroke%3D%22%2386868b%22%20stroke-width%3D%221.5%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cellipse%20cx%3D%22250%22%20cy%3D%2228%22%20rx%3D%22120%22%20ry%3D%2212%22%20fill%3D%22%23ffffff%22%20stroke%3D%22%2386868b%22%20stroke-width%3D%221.5%22%2F%3E%3Ctext%20x%3D%22250.0%22%20y%3D%2271.2%22%20font-size%3D%2220%22%20font-weight%3D%22600%22%20text-anchor%3D%22middle%22%20fill%3D%22%231d1d1f%22%3EPhoto%20file%3A%20beach.jpg%3C%2Ftext%3E%3Crect%20x%3D%2220%22%20y%3D%22143%22%20width%3D%22272%22%20height%3D%2252%22%20rx%3D%2212%22%20fill%3D%22%23000000%22%20fill-opacity%3D%220.06%22%2F%3E%3Crect%20x%3D%2220%22%20y%3D%22140%22%20width%3D%22272%22%20height%3D%2252%22%20rx%3D%2212%22%20fill%3D%22%23ffffff%22%20stroke%3D%22%2386868b%22%20stroke-width%3D%221.5%22%2F%3E%3Ctext%20x%3D%22156.0%22%20y%3D%22173.2%22%20font-size%3D%2220%22%20font-weight%3D%22600%22%20text-anchor%3D%22middle%22%20fill%3D%22%231d1d1f%22%3EThe%20data%3A%20the%20picture%20itself%3C%2Ftext%3E%3Crect%20x%3D%22318%22%20y%3D%22143%22%20width%3D%22150%22%20height%3D%2252%22%20rx%3D%2212%22%20fill%3D%22%23000000%22%20fill-opacity%3D%220.06%22%2F%3E%3Crect%20x%3D%22318%22%20y%3D%22140%22%20width%3D%22150%22%20height%3D%2252%22%20rx%3D%2212%22%20fill%3D%22%23ffffff%22%20stroke%3D%22%2386868b%22%20stroke-width%3D%221.5%22%2F%3E%3Ctext%20x%3D%22393.0%22%20y%3D%22173.2%22%20font-size%3D%2220%22%20font-weight%3D%22600%22%20text-anchor%3D%22middle%22%20fill%3D%22%231d1d1f%22%3EThe%20metadata%3C%2Ftext%3E%3Crect%20x%3D%22280%22%20y%3D%22233%22%20width%3D%22212%22%20height%3D%2252%22%20rx%3D%2212%22%20fill%3D%22%23000000%22%20fill-opacity%3D%220.06%22%2F%3E%3Crect%20x%3D%22280%22%20y%3D%22230%22%20width%3D%22212%22%20height%3D%2252%22%20rx%3D%2212%22%20fill%3D%22%23ffffff%22%20stroke%3D%22%2386868b%22%20stroke-width%3D%221.5%22%2F%3E%3Ctext%20x%3D%22386.0%22%20y%3D%22263.2%22%20font-size%3D%2220%22%20font-weight%3D%22600%22%20text-anchor%3D%22middle%22%20fill%3D%22%231d1d1f%22%3EName%3A%20beach.jpg%3C%2Ftext%3E%3Crect%20x%3D%22280%22%20y%3D%22293%22%20width%3D%22212%22%20height%3D%2252%22%20rx%3D%2212%22%20fill%3D%22%23000000%22%20fill-opacity%3D%220.06%22%2F%3E%3Crect%20x%3D%22280%22%20y%3D%22290%22%20width%3D%22212%22%20height%3D%2252%22%20rx%3D%2212%22%20fill%3D%22%23ffffff%22%20stroke%3D%22%2386868b%22%20stroke-width%3D%221.5%22%2F%3E%3Ctext%20x%3D%22386.0%22%20y%3D%22323.2%22%20font-size%3D%2220%22%20font-weight%3D%22600%22%20text-anchor%3D%22middle%22%20fill%3D%22%231d1d1f%22%3ESize%3A%202400%20KB%3C%2Ftext%3E%3Crect%20x%3D%22280%22%20y%3D%22353%22%20width%3D%22212%22%20height%3D%2252%22%20rx%3D%2212%22%20fill%3D%22%23000000%22%20fill-opacity%3D%220.06%22%2F%3E%3Crect%20x%3D%22280%22%20y%3D%22350%22%20width%3D%22212%22%20height%3D%2252%22%20rx%3D%2212%22%20fill%3D%22%23ffffff%22%20stroke%3D%22%2386868b%22%20stroke-width%3D%221.5%22%2F%3E%3Ctext%20x%3D%22386.0%22%20y%3D%22383.2%22%20font-size%3D%2220%22%20font-weight%3D%22600%22%20text-anchor%3D%22middle%22%20fill%3D%22%231d1d1f%22%3ETaken%3A%2014%20June%202026%3C%2Ftext%3E%3Crect%20x%3D%22280%22%20y%3D%22413%22%20width%3D%22212%22%20height%3D%2252%22%20rx%3D%2212%22%20fill%3D%22%23000000%22%20fill-opacity%3D%220.06%22%2F%3E%3Crect%20x%3D%22280%22%20y%3D%22410%22%20width%3D%22212%22%20height%3D%2252%22%20rx%3D%2212%22%20fill%3D%22%23ffffff%22%20stroke%3D%22%2386868b%22%20stroke-width%3D%221.5%22%2F%3E%3Ctext%20x%3D%22386.0%22%20y%3D%22443.2%22%20font-size%3D%2220%22%20font-weight%3D%22600%22%20text-anchor%3D%22middle%22%20fill%3D%22%231d1d1f%22%3EPlace%3A%20Brighton%3C%2Ftext%3E%3C%2Fsvg%3E)
%22%2F%3E%3Cpath%20d%3D%22M%20304%20100%20L%20392%20137%22%20fill%3D%22none%22%20stroke%3D%22%23d1d1d6%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20marker-end%3D%22url(%23head)%22%2F%3E%3Cpath%20d%3D%22M%20393%20192%20V%20214%20H%20256%20V%20436%22%20fill%3D%22none%22%20stroke%3D%22%23d1d1d6%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M%20256%20256%20L%20277%20256%22%20fill%3D%22none%22%20stroke%3D%22%23d1d1d6%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20marker-end%3D%22url(%23head)%22%2F%3E%3Cpath%20d%3D%22M%20256%20316%20L%20277%20316%22%20fill%3D%22none%22%20stroke%3D%22%23d1d1d6%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20marker-end%3D%22url(%23head)%22%2F%3E%3Cpath%20d%3D%22M%20256%20376%20L%20277%20376%22%20fill%3D%22none%22%20stroke%3D%22%23d1d1d6%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20marker-end%3D%22url(%23head)%22%2F%3E%3Cpath%20d%3D%22M%20256%20436%20L%20277%20436%22%20fill%3D%22none%22%20stroke%3D%22%23d1d1d6%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20marker-end%3D%22url(%23head)%22%2F%3E%3Cpath%20d%3D%22M%20130%2031%20V%2091%20A%20120%2012%200%200%200%20370%2091%20V%2031%20Z%22%20fill%3D%22%23000000%22%20fill-opacity%3D%220.06%22%2F%3E%3Cpath%20d%3D%22M%20130%2028%20V%2088%20A%20120%2012%200%200%200%20370%2088%20V%2028%20A%20120%2012%200%200%200%20130%2028%20Z%22%20fill%3D%22%232c2c2e%22%20stroke%3D%22%238e8e93%22%20stroke-width%3D%221.5%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cellipse%20cx%3D%22250%22%20cy%3D%2228%22%20rx%3D%22120%22%20ry%3D%2212%22%20fill%3D%22%232c2c2e%22%20stroke%3D%22%238e8e93%22%20stroke-width%3D%221.5%22%2F%3E%3Ctext%20x%3D%22250.0%22%20y%3D%2271.2%22%20font-size%3D%2220%22%20font-weight%3D%22600%22%20text-anchor%3D%22middle%22%20fill%3D%22%23f5f5f7%22%3EPhoto%20file%3A%20beach.jpg%3C%2Ftext%3E%3Crect%20x%3D%2220%22%20y%3D%22143%22%20width%3D%22272%22%20height%3D%2252%22%20rx%3D%2212%22%20fill%3D%22%23000000%22%20fill-opacity%3D%220.06%22%2F%3E%3Crect%20x%3D%2220%22%20y%3D%22140%22%20width%3D%22272%22%20height%3D%2252%22%20rx%3D%2212%22%20fill%3D%22%232c2c2e%22%20stroke%3D%22%238e8e93%22%20stroke-width%3D%221.5%22%2F%3E%3Ctext%20x%3D%22156.0%22%20y%3D%22173.2%22%20font-size%3D%2220%22%20font-weight%3D%22600%22%20text-anchor%3D%22middle%22%20fill%3D%22%23f5f5f7%22%3EThe%20data%3A%20the%20picture%20itself%3C%2Ftext%3E%3Crect%20x%3D%22318%22%20y%3D%22143%22%20width%3D%22150%22%20height%3D%2252%22%20rx%3D%2212%22%20fill%3D%22%23000000%22%20fill-opacity%3D%220.06%22%2F%3E%3Crect%20x%3D%22318%22%20y%3D%22140%22%20width%3D%22150%22%20height%3D%2252%22%20rx%3D%2212%22%20fill%3D%22%232c2c2e%22%20stroke%3D%22%238e8e93%22%20stroke-width%3D%221.5%22%2F%3E%3Ctext%20x%3D%22393.0%22%20y%3D%22173.2%22%20font-size%3D%2220%22%20font-weight%3D%22600%22%20text-anchor%3D%22middle%22%20fill%3D%22%23f5f5f7%22%3EThe%20metadata%3C%2Ftext%3E%3Crect%20x%3D%22280%22%20y%3D%22233%22%20width%3D%22212%22%20height%3D%2252%22%20rx%3D%2212%22%20fill%3D%22%23000000%22%20fill-opacity%3D%220.06%22%2F%3E%3Crect%20x%3D%22280%22%20y%3D%22230%22%20width%3D%22212%22%20height%3D%2252%22%20rx%3D%2212%22%20fill%3D%22%232c2c2e%22%20stroke%3D%22%238e8e93%22%20stroke-width%3D%221.5%22%2F%3E%3Ctext%20x%3D%22386.0%22%20y%3D%22263.2%22%20font-size%3D%2220%22%20font-weight%3D%22600%22%20text-anchor%3D%22middle%22%20fill%3D%22%23f5f5f7%22%3EName%3A%20beach.jpg%3C%2Ftext%3E%3Crect%20x%3D%22280%22%20y%3D%22293%22%20width%3D%22212%22%20height%3D%2252%22%20rx%3D%2212%22%20fill%3D%22%23000000%22%20fill-opacity%3D%220.06%22%2F%3E%3Crect%20x%3D%22280%22%20y%3D%22290%22%20width%3D%22212%22%20height%3D%2252%22%20rx%3D%2212%22%20fill%3D%22%232c2c2e%22%20stroke%3D%22%238e8e93%22%20stroke-width%3D%221.5%22%2F%3E%3Ctext%20x%3D%22386.0%22%20y%3D%22323.2%22%20font-size%3D%2220%22%20font-weight%3D%22600%22%20text-anchor%3D%22middle%22%20fill%3D%22%23f5f5f7%22%3ESize%3A%202400%20KB%3C%2Ftext%3E%3Crect%20x%3D%22280%22%20y%3D%22353%22%20width%3D%22212%22%20height%3D%2252%22%20rx%3D%2212%22%20fill%3D%22%23000000%22%20fill-opacity%3D%220.06%22%2F%3E%3Crect%20x%3D%22280%22%20y%3D%22350%22%20width%3D%22212%22%20height%3D%2252%22%20rx%3D%2212%22%20fill%3D%22%232c2c2e%22%20stroke%3D%22%238e8e93%22%20stroke-width%3D%221.5%22%2F%3E%3Ctext%20x%3D%22386.0%22%20y%3D%22383.2%22%20font-size%3D%2220%22%20font-weight%3D%22600%22%20text-anchor%3D%22middle%22%20fill%3D%22%23f5f5f7%22%3ETaken%3A%2014%20June%202026%3C%2Ftext%3E%3Crect%20x%3D%22280%22%20y%3D%22413%22%20width%3D%22212%22%20height%3D%2252%22%20rx%3D%2212%22%20fill%3D%22%23000000%22%20fill-opacity%3D%220.06%22%2F%3E%3Crect%20x%3D%22280%22%20y%3D%22410%22%20width%3D%22212%22%20height%3D%2252%22%20rx%3D%2212%22%20fill%3D%22%232c2c2e%22%20stroke%3D%22%238e8e93%22%20stroke-width%3D%221.5%22%2F%3E%3Ctext%20x%3D%22386.0%22%20y%3D%22443.2%22%20font-size%3D%2220%22%20font-weight%3D%22600%22%20text-anchor%3D%22middle%22%20fill%3D%22%23f5f5f7%22%3EPlace%3A%20Brighton%3C%2Ftext%3E%3C%2Fsvg%3E)
Quick check: data or metadata?
Have a go
Quick check: data or metadata?
3 questionsMetadata in everyday things
| Thing | The data | The metadata |
|---|---|---|
| A photo | The picture | Date, place, size, camera |
| A song | The sound | Title, artist, album, length |
| A web page | The words and pictures | Page title, description, author, date |
| A school file | The report | File name, size, who made it, last changed |
| A text message | The words | Who 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.
- Describes the data: what it is, how big it is.
- Gives context: who made it, when, and where.
- Helps you find it: search for all photos from Brighton.
- Helps you organise it: sort songs by artist.
Try it: metadata in a dictionary
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
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.
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
- 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).
- 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.
- Metadata in everyday things. The data and the metadata. A school file: the report; file name, size, who made it, last changed.
- 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.
- 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 questionsRemember
Tip
Metadata is data about data. It describes, gives context, helps you find and helps you organise.