A browser extension that removes metadata from images (EXIF) and PDFs before uploading files.
Disclaimer: This is a work in progress, mostly done using AI as I'm not a javascript developer, it may contain security issues. Use at your own risk.
Test it on exif.tools
- Strip EXIF: Remove EXIF from JPEG/PNG images.
- PDF Metadata Removal: Uses pdf-lib to clear PDF info (title, author, etc.).
- Creates a [filename]-cleaned.[extension] and uploads it.
- Not all sites rely on
<input type="file">tags. - Allows to upload other file extensions.
- Extension is too heavy (not sure why yet: nearly 60MB)
-
Install Dependencies
npm install
-
Build the Extension
npx webpack
This generates the bundled JavaScript files in the dist/ folder.
-
Load Unpacked
Chrome, Edge, Opera
- Navigate to chrome://extensions (or edge://extensions, opera://extensions).
- Enable Developer Mode.
- Click Load Unpacked, select the folder containing manifest.json.
Firefox
- Go to about:debugging#/runtime/this-firefox.
- Click Load Temporary Add-on.
- Select manifest.json.
Safari
- Use Safari Web Extension Converter with Xcode.
- Enable and run the resulting extension in Safari.
- Navigate to a page with an .
- A “broom” icon or 🧹 button appears next to the file upload.
- Click the broom to pick a file (image/PDF).
- The extension strips EXIF (for images) or PDF metadata.
You can test the resulting file at services like exif.tools to confirm the removal of metadata.
Work in Progress: May contain bugs or security flaws.
Limited to JPEG/PNG Images and PDFs: Other file types should not be supported.
PDF: Only standard metadata fields are removed. Some embedded metadata might persist.