IPTC IIM · XMP · keywords · batch JPEG

IPTC Keyword and Caption Editor

Write titles, captions, credit and keywords into a batch of JPEGs, import them from a CSV, and check the counts against stock-site limits. The pixels are never re-encoded.

Photos

Up to 200 JPEGs

Drop JPEGs here or click to choose

Up to 200 files, 40 MB each.

Write and download

CSV and templates

Rows are matched to photos by the filename column. Keywords in one cell are separated by semicolons or commas.

Templates apply to the selected photos, or to the open one when none is selected, and are kept in this browser only.

Open photos to edit their metadata.

IPTC Keyword and Caption Editor

Operator: Abdulla Al Fahad. How tools are built and checked

Keywording is the slow part of selling or archiving photos: the same copyright line, the same credit and a different handful of keywords on every picture. Photo agencies and picture libraries read two places for them, an old IPTC block and a newer XMP packet, and they disagree when only one is updated.

This page writes both from one form, per photo or across a whole selection, and leaves the compressed image data exactly as it was.

Key features

  • Title, headline, caption, keywords, creator, credit, source, copyright, city, sublocation, state, country and country code, written to IPTC IIM and to XMP (dc, photoshop and Iptc4xmpCore properties)
  • Set any fields on many photos at once, with keywords added, replaced or removed, and templates that fill only empty fields or overwrite
  • CSV export and import matched by file name, so a spreadsheet can carry the keywords for a whole shoot
  • Counters in characters and IPTC bytes per field, and keyword-count, duplicate and length checks against stock-agency presets you can read below

Where each field is stored

A JPEG is a sequence of segments, and the metadata lives in the ones before the image scan. The IPTC IIM block sits in an APP13 segment labelled Photoshop 3.0, inside an 8BIM resource numbered 0x0404, as a run of datasets such as 2:25 for a keyword, 2:120 for the caption and 2:116 for the copyright notice. XMP sits in an APP1 segment that begins with the namespace http://ns.adobe.com/xap/1.0/ and holds an XML packet. This page rebuilds the IPTC block and the XMP packet and copies every other byte, including the Exif segment and everything from the start-of-scan marker on, unchanged. Other Photoshop resources, such as clipping paths, are carried over even when they sit in a different APP13 segment from the IPTC block; the only one dropped is the IPTC digest (resource 0x0425), because it is an MD5 of the old block and would otherwise go stale.

IIM fields have hard byte limits: 64 for the title and each keyword, 256 for the headline, 2,000 for the caption, 32 for the creator, credit, source, city, sublocation and state, 128 for the copyright, 64 for the country and 3 for the country code. Text that is longer is cut at a whole character in the IPTC block and keeps its full length in XMP, and a warning says so. When any text is not plain ASCII, or the file already declared UTF-8, the page also writes dataset 1:90 with the escape sequence for UTF-8, which is how readers know not to treat the bytes as Latin-1. Several authors are held in the creator field separated by semicolons and written as separate values, one dc:creator list item and one 2:80 dataset each.

XMP is edited rather than replaced. The existing packet is parsed, only the properties this page manages are removed (whether written as elements or as attributes, and whatever prefix they used), and a new description with the current values is added. Anything else in the packet, such as a star rating or a develop setting, stays. The packet must fit in one APP1 segment, roughly 64 KB; a longer one is refused with a message, and Extended XMP in a separate segment is left alone and reported.

How it works

Each file is read once to fill the form. When you download, it is read again, the new segments are built from the form, and the result is checked: the bytes from the start-of-scan marker to the end must equal the original's, otherwise nothing is saved.

Nothing is written to your files until you press Download; edits live only on the page, and a ZIP holds the tagged copies under new names ending in -tagged.jpg.

Common use cases

  • A wedding photographer delivers 240 JPEGs in four batches of 60. Each batch gets the same credit, copyright and city once through Set fields on many photos, and the per-photo keywords come from a CSV the second shooter filled in.
  • A stock contributor's upload is rejected for having 61 keywords. Choosing the 49-keyword preset flags the photo with an error and lists the duplicate pair "Sea" and "sea"; removing the duplicate leaves 60, and trimming 11 more of the weakest keywords brings the list to 49.
  • An archive of scans carries only an old IPTC caption and no XMP. Writing both gives the same caption to modern tools, and an XMP block with only the managed fields is created.
  • A news desk receives 35 agency JPEGs that carry a caption but no location. A template with city Tromsø, country Norway and code NOR, applied with fill empty fields, adds the place to every photo and leaves each caption alone; the ø is why the IPTC block gains its UTF-8 marker.

How to use this tool

  1. Drop the JPEGs. Each is read for its current IPTC and XMP values.
  2. Click a photo to edit it, or tick several and use Set fields on many photos for the shared parts such as credit and copyright.
  3. Use Export CSV to get a spreadsheet of file names and fields, fill in the keywords there, and Import CSV to bring them back.
  4. Choose a stock preset and fix anything flagged: too many keywords, repeats, or a title over the limit.
  5. Leave IPTC IIM and XMP both ticked unless you have a reason to write only one.
  6. Download one JPEG, or all of them as a ZIP.

Example

A JPEG whose XMP has a rating of 4, the title Old title and the credit Old credit

New title Harbour at dawn; keywords harbour, dawn, boats, Tromsø, mist; credit and creator A. Photographer; country Norway, code NOR; write IIM and XMP

What the file contains afterwards

XMP: new title, credit and five keywords; xmp:Rating="4" untouched; Old title and Old credit gone
IIM: the same fields, with the UTF-8 marker added because of the ø
Image data: byte-identical to the original
A 100-character title would be cut to 64 bytes in the IIM block, with a warning, and stay whole in XMP

Tips for best results

  • When IPTC and XMP already disagree in a file, the list shows IIM≠XMP and the form displays the XMP value, so check that value before you save, because saving makes both identical.
  • Put the text you want to show first in the title or headline, then the caption; many libraries show only the first 60 to 80 characters of a caption in a grid.
  • Save a template for each client and use fill empty fields, so a photo that already has a hand-written caption keeps it.

Common pitfalls

Only JPEG is supported. PNG, TIFF and RAW store metadata differently, and a file whose JPEG structure is damaged is reported as unreadable instead of being repaired.

The stock presets hold the limits the agencies publish as of November 2026: Adobe Stock 5 to 49 keywords and 70-character titles, Shutterstock 7 to 50 keywords and 200-character descriptions. The page does not read them from the agencies, and agencies change them, so confirm the numbers before a large upload.

Dates and GPS live in the Exif segment, which this page leaves exactly as it is. An XMP title or description that also exists in other languages keeps only its default-language text when saved, and a note on the photo says so.

Common errors and how to fix them

"The XMP block would be … bytes, over the 65,535-byte JPEG segment limit"
Shorten the caption or remove keywords. The existing packet may also carry a large thumbnail or edit history that Lightroom or Photoshop added.
"The image data changed while writing, so nothing was saved"
This should never happen; it means the byte comparison failed. Keep the original and report the file.
"The CSV needs a filename column"
Export a CSV first and keep its first row. File names are matched without regard to case, and a name without its extension also matches.

Frequently asked questions

Why are keywords cut to 64 bytes in the IPTC block but not in XMP?

The IPTC format fixes each keyword at 64 bytes, and a character such as ø takes two of them. XMP has no per-keyword limit, so the full text is stored there, and modern tools read XMP first.

What happens to a photo with two authors?

Both names show in the creator field joined by a semicolon, for example Ana Silva; Bo Chen, and are written back as two separate values, two dc:creator list items in XMP and two 2:80 datasets in IPTC. A name that itself contains a semicolon would be split in two, so avoid the character inside a name.

Do clipping paths and other Photoshop data survive a save?

Yes. The IPTC block is rebuilt in place among the other Photoshop resources, even when the clipping paths were stored in an earlier APP13 segment. If you untick IPTC IIM, every APP13 segment is copied back untouched.