BatchSet DPI Checker

BatchSet DPI Checker

●1 ●2 ●4
calendar_today ago • schedule1 min read

Government and exam forms often ask for a photo "at 300 DPI", and the usual advice is to open Photoshop or check the file properties in Windows. I wanted a quicker way, so I added a small DPI checker to BatchSet.

Try it: DPI Checker

What it shows

Drop a JPG or PNG and you get:

  • the DPI written in the file, and which header it came from
  • the pixel size
  • the print size in inches and cm at that DPI
  • how large the image prints sharply at 300 DPI

If the file has no DPI at all, which is common for screenshots and canvas exports, it says "No DPI set" instead of guessing 72 or 96.

How it reads the value

Nothing is decoded. The checker reads the raw bytes from an ArrayBuffer and detects the format from its magic bytes, not from the file extension or the MIME type the browser reports.

  • JPEG can store density in two places: the JFIF APP0 segment and the EXIF XResolution / YResolution tags. Programs do not agree on which one wins (Photoshop and Windows Explorer read EXIF), so the result says which header the number came from.
  • PNG stores it once, in the pHYs chunk, as pixels per metre. That gets converted to DPI and rounded.
  • WebP has no standard density field, so the file is rejected with a short explanation rather than shown with a made-up number.

The file never leaves your device and there is no signup.

Why DPI confuses people

DPI is only metadata. It tells a printer how big to print the pixels that already exist, so changing 72 to 300 adds no detail. Print quality depends on the pixel count, which is why the checker also shows the 300 DPI print size.

If a form needs a specific value, the companion DPI converter rewrites only the header, so the pixel data stays byte-identical.

Feedback is welcome, especially files where the JFIF and EXIF values disagree.

🔥 Join developers growing publicly
Share your knowledge, build in public, and grow your developer presence with a global community.

More Posts

TypeScript Complexity Has Finally Reached the Point of Total Absurdity

Karol Modelski - Apr 23

I’m a Senior Dev and I’ve Forgotten How to Think Without a Prompt

Karol Modelski - Mar 19

Sovereign Intelligence: The Complete 25,000 Word Blueprint (Download)

Pocket Portfolio - Apr 1

How I Built a React Portfolio in 7 Days That Landed ₹1.2L in Freelance Work

Dharanidharan - Feb 9

The Memory Leak in addEventListener You’re Ignoring

Joemetry - Oct 15
chevron_left
122 Points • 7 Badges
Pakistan • batchset.com
1Posts
0Comments
Frontend-heavy software developer from Pakistan. I build BatchSet (batchset.com), a set of image too... Show more

Related Jobs

View all jobs →

Commenters (This Week)

6 comments
1 comment
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!