Skip to content
UniKit

Write EXIF data

Real Exif 2.3 writing: JPEG gets an APP1 segment (camera, dates, artist, copyright, user comment, GPS) and PNG gets tEXt chunks, then everything is re-parsed to verify.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

The image is rewritten locally in your browser and never uploaded.

Pick a JPEG or PNG; JPEG gets an APP1(Exif) segment, PNG gets tEXt chunks.

Fields to write

Write result

APP1: 45 78 69 66 00 00 49 49 2a 00 08 00 00 00 02 00 0f 01 02 00 0e 00 00 00 …

Fill in fields and each one is listed with its result, re-parsed to verify.

What this tool does

  • Fill in shooting details: add camera model and capture time to outsourced photos so archives stay searchable.
  • Assert copyright: the artist and copyright fields travel with the photo when it changes hands.
  • Add GPS: write latitude and longitude for photos that need to be placed on a map later.
  • Verify on write: the tool re-parses the freshly written file and lists the values it reads back, so "written but ignored" cannot happen silently.

Example

Input

An 8 × 8 JPEG with Make=TestCam, Software=unikit, DateTime=2024:05:06 07:08:09

Output

Format: JPEG
Original size: 974 B
Output size: 1201 B
Fields written: make, software, dateTime
Verified after writing make: TestCam

A new APP1 segment is added (`Exif\0\0` + TIFF header + IFD0/Exif/GPS sub-IFDs) and then read back with the same parser for cross-checking.

Frequently asked questions

Can PNG hold EXIF too?

PNG has no standard EXIF text field, so fields are written as tEXt chunks whose keywords are EXIF field names (Make, Software, GPSLatitude…). They can be read back by parsing text chunks.

Why must the date be 2024:05:06 07:08:09?

The EXIF DateTime format is `YYYY:MM:DD HH:MM:SS` with colons, not hyphens. A wrong format is rejected outright so you never write data no reader understands.

Will existing EXIF be overwritten?

The APP1 segment is replaced by the newly written one while other APPn / COM segments are kept. To preserve the original camera data, leave those fields blank.

Are images uploaded?

No. Segment parsing, APP1 construction and rewriting all happen in your browser; the image never leaves your machine.

Keywords:img_exifdataswrite exifexif writer

Related tools