MaskMyBody MaskMyBody 本地离线 100% 免费
IDENTITY CARD SECURITY

How Do You Redact MRZ Codes and Barcodes on Identity Cards?

Why covering your photo and name is useless if the machine-readable zone at the bottom remains visible.

Published by MaskMyBody Security Research · 90 sec · Updated November 2026

简短摘要 (TL;DR)

Direct Answer (TL;DR): Black out the entire 2-line or 3-line Machine Readable Zone (MRZ) and any PDF417 barcodes at the card bottom with solid opaque rectangles (#000000). The MRZ encodes your passport number, birthdate, expiry, and legal name in unencrypted OCR-B font.

Recommended Privacy Tool

Auto License Plate Redactor

Detect and scramble vehicle registration numbers locally in your browser memory.

Redact Plates Free →

核心要点

  • The MRZ strip at the bottom contains all personal data printed on the card face.
  • Blurring or pixelating MRZ lines leaves high-contrast OCR characters easily decipherable.
  • Solid black boxes flattened into a raster bitmap destroy machine-readable credentials.

Why Redacting Only Card Face Fields Leaves You Vulnerable

Covering name and ID numbers on the card face while leaving the bottom MRZ strip untouched fails completely. Scanners read MRZ lines in milliseconds, bypassing visual redactions.

ID Card Machine-Readable Data Matrix

| ID Component | Encoded Data | OCR Readability if Blurred | Safe Redaction Method | | :--- | :--- | :--- | :--- | | **Front Text Fields** | Name, Address, DOB | High (Character recognition) | Solid black box | | **MRZ Strip** | **Passport No, DOB, Expiry** | **Critical (Checksum readable)** | **Full strip blackout** | | **PDF417 Barcode** | Biometric license data | High (Error correction) | Full barcode blackout |

  • Zero Cloud Exposure: Verified 100% Client-Side Privacy & Zero-Server Airgap (Wasm, EXIF destruction, browser memory).
  • 👉 Redact ID cards and MRZ strips in browser memory on [MaskMyBody](https://maskmybody.com).

常见问题

What does the MRZ code on a passport contain?

It encodes document type, country, full name, passport number, birthdate, sex, and checksums.

Can barcode scanners read a blurred barcode?

Yes. PDF417 2D barcodes use Reed-Solomon error correction that reconstructs blurred bars.

Related Privacy Questions

文档脱敏与身份防卫

零服务器文档脱敏指南:如何安全涂抹身份证与驾照

向房东或第三方提交证件照片前,请用浏览器本地的纯黑不透明遮盖涂掉非必要号码,切勿使用手机相册半透明的黑色画笔。

Read Answer →
截图与文档隐私

怎样把照片和截图里的文字涂黑才能彻底不被看穿

千万别用手机自带黑色记号笔或浅度模糊去遮照片文字,因为拉高曝光与对比度往往能看清底层字迹。在浏览器中使用 100% 不透明纯黑矩形才能把原本字迹像素彻底删除。

Read Answer →
Document Security

Can Photoshop Invert or Recover Solid Black Redaction Boxes?

Direct Answer (TL;DR): No, Photoshop cannot invert or recover rasterized solid black RGB (0,0,0) redaction boxes. Once pixels are flattened into pure black (luminance 0), original pixel data is destroyed and zero mathematical variance remains for Curves, Levels, or AI to reconstruct.

Read Answer →
Document Security

How Do You Redact Pay Stubs for Rental Applications Safely?

Direct Answer (TL;DR): When sending pay stubs to landlords, keep your name, employer, dates, and gross earnings visible. Black out bank routing, account numbers, Social Security Numbers, and personal deductions (401k, health) that risk financial fraud.

Read Answer →