Free tech learning for everyone, from basics to pro

Photo: George Prentzas on Unsplash

How Technology WorksBeginner

How face unlock and fingerprint unlock work

In short: Fingerprint and face unlock turn a part of your body into a mathematical template, not a stored photo. Each time you unlock, the phone compares a new scan with the template inside a secure chip that apps cannot read. Good face unlock systems use infrared 3D scanning so a photo cannot fool them. Your biometric data normally never leaves the device.

Animation: the main idea at a glance. It plays on a loop with no sound.

The short answer

When you set up fingerprint or face unlock, your phone does not keep a picture of your finger or face. It measures key features and turns them into a template: a mathematical description. Each time you unlock, it takes a new reading, turns it into numbers and checks whether it is close enough to the template.

This is called biometric authentication: proving who you are with a part of your body.

How fingerprint sensors work

A fingerprint is a pattern of ridges and valleys with tiny features where lines end or split. Phones read it in a few ways:

Sensor typeHow it reads your fingerWhere you find it
CapacitiveMeasures tiny electrical differences between ridges (touching) and valleys (not touching)Home buttons, side buttons, laptops
OpticalLights up your finger and takes a detailed image through the screenUnder the screen on many phones
UltrasonicSends sound waves and measures the echoes to build a 3D mapUnder the screen on some high-end phones

How face unlock works

There are two very different kinds:

  • 2D face unlock uses the normal front camera. It is convenient but can sometimes be fooled by a good photo or a family member, so many phones do not allow it for payments.
  • 3D face recognition, such as Apple's Face ID, projects thousands of invisible infrared dots onto your face and measures their shape to build a depth map. Because it reads the 3D shape, a flat photo cannot fool it, and it works in the dark.

Good systems also check that the face or finger is "live" and that your eyes are open and looking at the screen.

Where is your biometric data kept?

On modern phones the template is stored in a separate, protected part of the chip, often called a secure enclave or trusted execution environment. Apps never see your fingerprint or face. They only receive a simple answer from the phone: "the owner is present" or "not the owner".

This is also how passkeys work: your face or finger unlocks a secret key stored on the phone, and the website never receives your biometric data (see Passkeys are going mainstream).

How safe is it?

  • Biometrics are convenient and strong against strangers who steal your phone.
  • But you cannot change your fingerprint like a password, which is why keeping the data on the device matters.
  • Your phone always keeps a PIN or password as a backup. That PIN is the real master key, so make it at least six digits and keep it private.
  • If you are worried someone could force you to unlock your phone, most phones have a quick way to temporarily disable biometrics and require the PIN.

Want to go deeper? See MFA and passwordless sign-in and how to turn on 2-step verification.

Key takeaways

  • Biometric unlock stores a mathematical template, not a photo of your finger or face.
  • Fingerprint sensors can be capacitive, optical or ultrasonic.
  • 3D face recognition uses infrared dots to read your face's shape, so photos cannot fool it.
  • Templates stay in a secure part of the chip; your PIN remains the master key, so keep it strong.
Verified author✓ Valid
Issued to
Mohamed Fayas
Role
Founder of FM TecHub
Credentials
CCNABTEC HND Network EngineeringBEng (Hons) Computer Networking & Cloud Security
Issuer
FM TecHub · fmtechub.com

He writes practical, plain-English guides on networking, security and cloud.

More about the author →

© 2026 FM TecHub. Original content written for FM TecHub. Share the link freely; please don't copy the text elsewhere without permission.

Email updates: coming soon

New notes, tools and security news from FM TecHub by email, explained simply. Free. We're not collecting email addresses yet; see our privacy policy.

PortServiceStatus
SMTP/25Email updatesopening soon

Meanwhile, stay connected: