Logo
Back to Blog
Media August 15, 2026 7 min read

Removing Metadata From PNG, HEIC and Screenshots

O

OmniWebKit Team

Image Tooling

Share:
Article Cover Image

Most metadata tools assume EXIF means JPEG. Feed them a PNG and they either do nothing useful or quietly re-encode the image, which flattens transparency and leaves the actual metadata sitting where it was.

That assumption is wrong, and it is wrong in a way that gives people false confidence. PNG carries text records and can carry a full EXIF block. HEIC carries everything a JPEG does inside a different structure. Screenshots carry less than a photo and more than nothing.

How to remove metadata from a PNG properly

A PNG is a sequence of labelled chunks: a header, the compressed image data, an end marker, and any number of optional chunks in between. Metadata lives in those optional chunks, so removing it means editing the list rather than touching the picture.

Done that way, nothing about the image changes. The IHDR header keeps its bit depth and colour type, every IDAT block survives byte for byte, and transparency is exactly as it was. Our image metadata remover works this way for PNG, JPEG and WebP.

The common alternative is to draw the image onto a canvas element and export it again. That does delete the metadata, because canvas cannot carry any, and it also replaces your image data with a fresh encode of what the canvas painted. For a transparent PNG that frequently means a white background, and it can change bit depth without saying so.

PNG text chunks explained

Four chunk types hold text, and they differ mainly in encoding.

tEXt stores plain Latin-1 key and value pairs — Author, Description, Software, Copyright, Creation Time. iTXt is the same idea in UTF-8, so it handles any language. zTXt is compressed tEXt, which means a viewer that does not decompress it will report the file as clean when it is not. tIME records when the file was last modified.

Since 2017 the specification also includes an eXIf chunk holding a complete EXIF block, GPS and all. Phones and editors that export PNG increasingly write it, so a modern PNG can carry exactly what a JPEG does.

The practical upshot: a graphic exported from a design tool often contains the software name, sometimes the account holder's name, and occasionally a description nobody meant to publish. You can see what a specific file holds in our metadata viewer, which reads all four chunk types.

HEIC metadata on iPhone, and why we refuse to strip it

HEIC is the default on iPhone and it is a different animal. Rather than a flat sequence, it uses the ISO base media container — the same box structure as MP4 — where metadata sits in nested boxes and other parts of the file hold byte offsets pointing into that structure.

Cut a box out and every offset after it is wrong. Rebuilding them correctly is real work, and getting it subtly wrong produces a file that opens in some viewers and fails in others, which is worse than a clear refusal. So our tool declines HEIC and says why, rather than handing you something that might be broken.

The reliable route is to convert first. Use our image format converter to produce a JPEG, then strip that. The conversion drops most metadata as a side effect and the strip removes whatever survived. You also get a file that opens everywhere, which is usually why people are converting anyway.

Worth knowing: AirDrop and the Files app hand over the original HEIC with everything intact. The iOS share sheet has an Options panel where location can be switched off before sending, which is the fastest fix for a single photo.

Do screenshots contain metadata worth removing?

Some, though not the kind people fear.

A screenshot has no camera, no lens, no exposure settings and no GPS, because none of those existed at the moment of capture. What it does carry is the device model, the operating system version and a creation timestamp. On some platforms the pixel dimensions alone identify the exact hardware.

Is that worth stripping? For a screenshot posted to a support forum, probably not. For anything shared under a pseudonym it might be, since a consistent device fingerprint across posts is a linking signal. The bigger risk with screenshots is always what is visible in them — a notification bar, a browser tab, an email address, a partly obscured window behind the thing you meant to capture.

One popular trick is worth correcting. Screenshotting a photo to strip its EXIF does work, because the screenshot is a new file that inherits nothing. It also costs you resolution and adds your own device fields. Removing the metadata properly is faster and lossless.

WebP and AVIF metadata: newer is not cleaner

Both modern formats carry metadata, and both are less well understood by the tools people reach for.

WebP wraps everything in RIFF chunks, with named blocks for EXIF, XMP and ICC. Removing them requires rewriting the file-size field in the header, which is a detail plenty of tools get wrong and which our stripper handles. AVIF uses the same box structure as HEIC and carries the same difficulty, so we treat it the same way.

The pattern to take away is that a newer container does not mean a cleaner file. It usually means fewer inspection tools support it, so metadata sits there unread rather than absent. If a tool cannot tell you what is inside a file, treat that as unknown rather than empty.

Choosing the right route for your file

JPEG, PNG and WebP can be cleaned losslessly, so do that and keep your quality. HEIC and AVIF need converting to JPEG first, which is a small quality cost on an already-compressed photo and a reliable result. Screenshots are already PNG or JPEG and clean like any other file.

Whatever the format, check the result the first few times rather than trusting a success message. And if location is the specific worry, our photo GPS checker answers that question alone. The general background on the fields themselves is in our EXIF explainer, and the routine for pre-upload cleaning is in the checklist for sharing photos.

Cleaning per file is the fallback, not the plan. Whatever container your phone writes, stopping it tagging photos in the first place removes the field before it exists, and that works identically for HEIC, JPEG and everything else.

Frequently Asked Questions

Does a PNG contain EXIF data?

+
It can. PNG originally had no EXIF at all and used its own text chunks instead, but a dedicated eXIf chunk was added to the specification in 2017 and modern software writes it. So a PNG can carry GPS and camera fields as well as the older text records. Assuming PNG means clean is a mistake.

Why does converting a PNG to JPEG turn transparency white?

+
JPEG has no alpha channel, so the transparent areas have to become something. Most converters fill them with white, and some use black, which is why a logo can come back with a solid block behind it. If transparency matters, stay in PNG or WebP and strip metadata without converting.

Do screenshots contain metadata?

+
Less than a photo and not nothing. There is no camera, no lens and no GPS, but a screenshot typically records the device model, the operating system version and a creation timestamp. That is enough to say what you were using and when, which occasionally matters more than people expect.

Can I remove metadata from a HEIC file directly?

+
Not safely with a simple structural edit, which is why we refuse to try. HEIC stores metadata in nested boxes that other offsets point into, so removing one without rebuilding the pointers produces a file some viewers open and others reject. Convert to JPEG first, then clean.

Does AirDropping a photo keep its metadata?

+
Yes. AirDrop hands over the original file, so a HEIC sent that way arrives with GPS, timestamps and camera fields intact. That is useful when you want the original and a leak when you did not realise. The iOS share sheet has an Options panel where location can be excluded.

Do WebP and AVIF files carry metadata?

+
Both can. WebP stores EXIF, XMP and ICC in named RIFF chunks, and AVIF uses the same box structure as HEIC. Newer format does not mean cleaner file — it usually means fewer tools know how to inspect it, which is worse for you rather than better.

What are PNG text chunks used for?

+
Free-form key and value pairs for things like author, description, creation software and copyright. Editors and export dialogs write them routinely, so a graphic exported from a design tool often carries the software name and sometimes the account holder's name. They are plain text and easy to read.

Will removing metadata change how my PNG looks?

+
Not if the tool edits the chunk list rather than re-encoding. Ours drops the metadata chunks and leaves the header and image data byte-identical, so bit depth, colour type and transparency are unchanged. Tools that redraw the image onto a canvas can and do change all three.

Does an iPhone screenshot reveal which iPhone I have?

+
Usually yes, through the device model field and the image dimensions, which map to specific hardware. It will not tell anyone your serial number or your location. If that bothers you, stripping the metadata handles the field and the dimensions still hint at the device.

Is it better to convert HEIC to JPEG or to PNG?

+
JPEG for photographs, because the content is photographic and PNG will produce a much larger file for no visible gain. PNG makes sense only if the image is a screenshot, a graphic or something with sharp edges and flat colour. Either way, strip the metadata after converting rather than before.

Tags

#PNG#HEIC#Metadata#Privacy