Hexloom LabsPhoto Scrubber · Hexloom Labs

Photo Scrubber › Guides

How to remove metadata from a PNG or WebP image

PNG and WebP both have places to store hidden metadata, though a given file may carry none. Here is what the specs allow, what the tool cuts out, and how to clean a file.

Déposez vos photos ici

Pas de photo sous la main ? avec de fausses données GPS.

JPG, PNG, WebP. Gratuit : jusqu'à 5 photos à la fois. Hexloom Pro (illimité, dossiers entiers, ZIP) : 29 $ par an ou 4 $ par mois, remboursement sous 14 jours.

Vous préférez l'avoir dans la barre d'outils ? Ajouter à Chrome. Mêmes limites gratuites, rien n'est envoyé.

Quick answer

Add the PNG or WebP to the tool above: it cuts the metadata chunks out of the file without re-encoding the picture, then re-reads the cleaned file and lists what is left. For PNG it keeps only a fixed list of chunks, so the Exif chunk, all three text chunk types and the last-modified time go. For WebP it removes the EXIF and XMP chunks.

What the specifications say

We found no source on how many PNG screenshots carry these chunks, so we make no claim about that. The PNG specification only shows that any PNG can hold Exif and text chunks, such as Software and Creation Time, if the program that saved it wrote them.

What the tool removes and keeps

PNG

Removed: every chunk that is not on a fixed keep list. That covers eXIf, tEXt, zTXt, iTXt and tIME, any other chunk type not on the list, and anything after the end chunk. Kept: IHDR, PLTE, IDAT, IEND, tRNS, gAMA, cHRM, sRGB, iCCP (the ICC profile), sBIT, pHYs, bKGD, hIST, the animation chunks acTL, fcTL and fdAT, and cICP, mDCV and cLLI. No rotation flag is written back, so an Exif orientation inside a PNG goes with the rest.

WebP

Removed: the EXIF and XMP chunks. The tool also clears the Exif and XMP flags in the VP8X header and rewrites the RIFF size. Kept: every other chunk unchanged, including the ICCP colour profile. No rotation flag is written back here either.

JPEG, for comparison

Removed: APP1 (Exif and XMP blocks), comment segments, APP3 to APP13 (including the IPTC and Photoshop block), APP15, APP2 other than the ICC profile, the JFXX thumbnail and any data after the end of the image. Kept: the other segments needed to decode the picture, the JFIF header and the ICC profile. A rotation flag other than normal is written back as a minimal Exif segment so the photo stays upright.

In all three formats the pixels are never decoded or re-encoded, so there is no quality loss. GIF is not supported.

Clean the photo before you send it

  1. Open the tool above and add your PNG or WebP files, up to 5 at a time. It runs entirely in your browser and your files are never uploaded.
  2. Read the before list. For a PNG it shows Exif details, text chunks by keyword and the last-modified date; for a WebP, Exif details and any XMP block. An empty list means the file had none.
  3. Download the cleaned copy.
  4. Check the after list. The tool re-reads the cleaned file to show what is left.
  5. Send the cleaned file instead of the original.

What this does not remove

To see what a file holds first, read how to see what metadata a photo has. On a desktop, see removing EXIF on Windows or on a Mac.

Sources

More guides

Conseils pour protéger vos photos

De temps en temps, un court conseil pour partager vos photos en sécurité, et un mot quand Photo Scrubber gagne une option : une fois par semaine au plus. Vous confirmez d'abord par e-mail et vous vous désabonnez en un clic.