# ed shelf metadata

> Inspect embedded metadata in selected local documents and images without changing them.

- Canonical URL: https://getedith.pro/docs/cli/shelf/metadata
- Updated: 2026-12-02

Inspect embedded metadata in selected local documents and images without
changing them.

```sh
ed shelf metadata <paths...> [--field <filter>...] [--identifying] [--copy] [--json]
```

```sh
ed shelf metadata ./photo.jpg ./report.pdf
ed shelf metadata ./photo.jpg --identifying --copy
ed shelf metadata ./report.docx --field author --field title --json
```

Paths are resolved from the working directory. Up to 50 files are read per
call. Folders, packages and missing paths are reported per file and make the
command exit 1 after printing the rest of the report.

## What is read

| Files | Metadata |
| --- | --- |
| Images, including JPEG, HEIC, PNG, TIFF, GIF, WebP and camera raw | EXIF, GPS, TIFF, IPTC, JFIF, PNG and maker note groups, plus XMP |
| PDF | Document information dictionary, page count, version, encryption and the XMP packet |
| Word, Excel, PowerPoint and Visio packages | Core, extended and custom document properties |
| OpenDocument text, spreadsheets, presentations and drawings | Document metadata and statistics |
| RTF and Word 97 documents | Title, author, company, manager, editor, keywords, comments and dates |
| Audio and video | Duration, track counts and embedded tags, including QuickTime location |
| Every file | Name, size, type, dates, permissions, download source, Finder tags and other extended attributes |

Other file types report their file system details and a notice that no
embedded metadata is supported for them.

Each field has an `id` (`<source>:<key>`), a `source` such as `GPS`, `Exif`,
`XMP`, `PDF`, `Office` or `File`, a sentence case `label`, a `kind` and a
`value`. Kinds group fields in the report: `file`, `image`, `camera`,
`location`, `time`, `author`, `document`, `software`, `media` and `other`.

Fields that can identify a person, place or device carry a `sensitivity`:

| Sensitivity | Examples |
| --- | --- |
| `location` | GPS coordinates, altitude, city, country, QuickTime location |
| `person` | Author, creator, artist, last modified by, owner, company, copyright |
| `device` | Body, lens and camera serial numbers, unique image ids, host computer |
| `origin` | Download URLs, the quarantine agent and download date |
| `contact` | Any value that contains an email address |

A flag means the value may identify someone. It is a review aid, not a
guarantee that unflagged fields are safe to share.

## Limits and unsupported values

- At most 2000 fields are kept per file. Further fields are counted in
  `omittedFields` and a notice says how many were skipped.
- Values longer than 4096 characters are shortened. Those fields have
  `status: "truncated"` and `originalLength`.
- Lists show their first 64 entries followed by a count of the rest.
- Binary values, structured PDF objects, values nested more than four levels
  deep and extended attributes larger than 64 KB have `status: "unsupported"`
  and a description such as `Binary data, 16 bytes` instead of their contents.
- Office and OpenDocument packages larger than 64 MB, RTF and Word documents
  larger than 32 MB, and property parts or XMP packets larger than 1 MB are
  skipped with a notice.
- Password protected PDFs report only their version, page count and
  encryption state.

## Selecting and copying fields

`--field` selects fields whose id, key, label, kind or source matches the
filter, ignoring case. Repeat it to select more. `--identifying` adds every
flagged field. With either option, files without a selected field are left
out of the output.

`--copy` writes the selected fields, or every field without a filter, to the
clipboard as plain text grouped by file and kind, then prints how many fields
were copied. It exits 2 without changing the clipboard when nothing matched.

```text
photo.jpg
  Location
    Coordinates: 48.858400 N, 2.294500 E
  People
    Artist: Ada Example
```

Without `--json`, stdout lists each file with its field and flag counts,
notices and a group, field, value and flag table. Long values are shortened in
the table. `--json` prints the full report:

```json
{
  "files": [
    {
      "fields": [
        {
          "id": "GPS:Position",
          "key": "Position",
          "kind": "location",
          "label": "Coordinates",
          "sensitivity": "location",
          "source": "GPS",
          "status": "shown",
          "value": "48.858400 N, 2.294500 E"
        }
      ],
      "format": "image",
      "name": "photo.jpg",
      "notices": [],
      "omittedFields": 0,
      "path": "/Users/example/photo.jpg",
      "size": 48213,
      "type": "JPEG image"
    }
  ]
}
```

Output larger than 1 MB is refused with exit 2; select fewer files or use
`--field`.

In the notch tray, right-click a file and choose **Show Metadata**, or use
**Show Metadata for All** in the tray's more menu. The window reads the shelf
copies off the main thread, groups their fields, and lets you tick fields or
use **Select** then **Identifying fields** before copying them.

## Where to go next

- [`ed shelf`](https://getedith.pro/docs/cli/shelf)
- [`ed shelf manifest`](https://getedith.pro/docs/cli/shelf/manifest)
- [All `ed` commands](https://getedith.pro/docs/cli)

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
