DevTools Logo

EXIF GPS Map Reverser

EXIF GPS Map Reverser

Read a photo's GPS location in your browser. The image is never uploaded; the map loads only when you ask.

Try an example

Choose a JPEG photo

The photo is read entirely client-side and is not stored or uploaded. Only JPEG EXIF is supported (not HEIC, PNG or WebP).

Location and metadata

Choose a JPEG to inspect its EXIF data

No photo handy? Try one of the samples above.

Examples

Bare JPEG without EXIF

Input
parseExifGps(new Uint8Array([0xff, 0xd8, 0xff, 0xd9]).buffer)
Output
{ found: false, message: "No EXIF metadata found in this JPEG." }

A minimal SOI+EOI file has no APP1 segment, so the parser reports missing EXIF.

OSM embed link

Input
osmEmbedUrl(41.5, 72)
Output
"https://www.openstreetmap.org/export/embed.html?bbox=...&marker=41.5%2C72"

The URL carries the bounding box plus a marker pinned at the decimal coordinates.

About this tool

EXIF GPS Map Reverser parses JPEG APP1 metadata with parseExifGps(buffer) (alias parseExif): it walks JPEG markers to the Exif header, reads the TIFF IFD (both II little-endian and MM big-endian, tag 42 checked), and extracts make, model, dateTime, and orientation alongside GPS tags.

Coordinates decode from rational DMS triples: latitude tags pair degrees/minutes/seconds rationals with the N/S ref and longitude with E/W, so S and W negate the decimal value (41°30′00″ N becomes 41.5, S becomes −41.5) via degrees + minutes/60 + seconds/3600.

Map links come from osmEmbedUrl(latitude, longitude), which builds an OpenStreetMap embed URL with a ±0.01° bounding box and marker — all parsing is dependency-free and client-side, with clear messages for missing, truncated, or GPS-less EXIF.

How to use this tool

  1. Load a JPEG

    Pass the file's ArrayBuffer to parseExifGps — non-JPEG input reports No EXIF metadata found.

  2. Read coordinates

    Check found, latitude, and longitude; a message explains when GPS tags are absent.

  3. Embed the map

    Call osmEmbedUrl with the decimal coordinates for an iframe-ready OpenStreetMap URL.

Use cases

Recovering shoot locations

Pull GPS decimals out of camera JPEGs for cataloging trips and shoots.

Auditing location privacy

Check whether shared photos still carry coordinates before publishing.

Embedding photo maps

Drop extracted coordinates into an OpenStreetMap iframe on a gallery page.

Common mistakes

Mistake:Expecting coordinates from every JPEG.

Fix:Many files strip GPS — a found: true result can still carry null coordinates with a GPS unavailable message.

Mistake:Forgetting S/W refs negate the value.

Fix:Southern and western hemispheres return negative decimals; compare sign, not just magnitude.

Frequently asked questions

What does this tool do?

It extracts JPEG GPS coordinates and camera metadata with parseExifGps (alias parseExif) and builds map embeds with osmEmbedUrl.

Why are my coordinates negative?

S and W references negate the decimal value — 41°30′00″ S parses as −41.5 while N parses as 41.5.

Is my photo uploaded or stored?

No. Marker walking, TIFF parsing (II and MM byte orders), and URL building run fully client-side.

Why is GPS missing but EXIF found?

Many files keep make/model tags while stripping GPS — you get found: true with null coordinates and a GPS unavailable message.

References & standards