Masker - PII Redaction for Medical Documents

At a glance

In shortUpload a medical document and Masker blacks out every piece of personal information on every page, then gives the file back.
ProblemMedical reports must be shared without names, IDs or contact details, and hand redaction is slow and easy to get wrong.
What it doesFinds personal and health information in images and PDFs and covers it with solid black boxes.
How it worksOCR gives the exact position of every word. Gemini reads only the text and decides which words are personal data. Those boxes get blacked out.
Why this designAI vision models read well but their boxes drift between runs. Letting OCR own the positions makes the redaction land on the exact pixels every time.
TechGoogle Vision OCR, Gemini 2.5 Flash-Lite, Firebase Hosting, Cloud Functions
Live demomasker-ganit.web.app

Flow

  1. Upload
    image or PDF
  2. Vision OCR
    exact box per word
  3. Gemini
    flags which words are PII
  4. Black out
    every flagged box
  5. Download
    same format as uploaded

Key points

  • Handles JPG, PNG and multi-page PDFs
  • Detects names, addresses, phone numbers, emails, dates of birth, patient IDs, Aadhaar / SSN, insurance numbers and signatures
  • Returns the same format it received: PDF in, PDF out
  • Shows the original and the redacted version side by side

Architecture

Masker architecture diagram
  • PII redaction
  • PHI
  • data privacy
  • healthcare AI
  • document AI
  • OCR
  • Google Vision API
  • Gemini
  • Firebase
All projects