Screen Time is one of iOS's standout features, providing deep insights into your device usage while letting you set limits, block apps, and more. You can even secure it with a dedicated passcode—perfect for handing your iPhone to kids or others.
But forgetting that passcode creates a real headache. Apple's official fix? Restore from an old iTunes backup without the passcode or factory reset, risking data loss. As someone who's managed countless iOS devices, I know that's impractical. After thorough testing, I've found two trustworthy tools that recover Screen Time passcodes (formerly Restrictions passcodes) from encrypted backups with ease. Both work on Windows and macOS.
To retrieve your passcode, you'll need an encrypted iTunes backup. Since iOS 12, Apple stores Screen Time passcodes securely, so unencrypted backups won't cut it (iOS 11 or earlier is the exception).
Connect your iPhone or iPad to your computer, open iTunes, go to the Summary tab, check "Encrypt local backup," set a strong password (remember it!), and hit "Back Up Now."

Once complete, you're set.
Pinfinder is a free, open-source tool (GitHub available) that's exceptionally reliable for extracting Screen Time passcodes. I've used it on multiple devices without issues.
macOS Note (Mojave 10.14+): Grant Terminal access to iTunes backups via System Preferences > Security & Privacy > Privacy tab.
Step 1: Download and extract Pinfinder.
Download Pinfinder
Step 2: Run the executable (click Run if prompted).

Step 3: Enter your iTunes encryption password and press Enter.

Step 4: Wait for decryption (a few minutes).

Step 5: Your Screen Time passcode appears under "Passcode Restrictions."

Simple and effective.
This paid app excels at iTunes data recovery, but the free trial (non-expiring) handles passcodes perfectly. I've relied on it for complex recoveries.
macOS Note: Follow on-screen prompts for iTunes backup access.
Step 1: Download and install Decipher Backup Browser.
Download Decipher Backup Browser
Step 2: Launch and select your encrypted backup.

Step 3: Enter the backup password.

Step 4: Allow time for decryption.

Step 5: Click "Screen Time Passcode" to view it.

Straightforward results.
These tools save hours and protect your data. Stick to reputable options like these—avoid paid apps promising miracles. If they don't work (rare), visit an Apple Genius Bar.
Share your success in the comments. Next: Free up Windows storage by relocating iTunes backups to another drive.