Can Border Agents Search the Photos on Your iPhone? What the Rules Say
What CBP may search on a phone, basic versus advanced searches, how to travel with less on the device, and where a vault fits in.
Quick answer
Yes. US Customs and Border Protection says all travelers and their devices are subject to inspection at the border, including photos stored on the phone. Officers may not use the phone to open data stored only in the cloud.
- Who can be searched
- Every traveler entering or leaving the US, citizen or not. CBP searched the devices of 72,456 travelers in fiscal year 2026.
- What is covered
- Whatever is stored on the phone when it is handed over. CBP says officers disable network connections and may not open data held only in the cloud.
- Before the trip
- Carry less: clear Recently Deleted, remove old screenshots and decide which private photos really need to travel on the phone.
- When to use a vault
- For everyday privacy on the road: a lost phone, a borrowed phone, a stranger at the hotel desk. A vault adds its own PIN; it leaves border law as it is.
Best overall: Stash
The iPhone keeps private photos in the main library or the Hidden album, and both open with the phone's own passcode. Stash keeps photos, videos and documents in a separate vault behind its own PIN, inside a working calculator. Imported items are encrypted on the iPhone with AES-256 and stay outside the Photos library and iCloud Photos, so travel photos and private ones stay apart. That is everyday privacy, not a way around an inspection. Stash is free to download with no ads, so the vault is ready from the first launch.
What CBP says it may search on a phone
This page describes US practice only, as of 2 December 2026. It is general information, not legal advice. For a question about your own case, talk to a lawyer before you travel.
US Customs and Border Protection explains its rules on the page Border Search of Electronic Devices (last modified 23 November 2026), which summarizes CBP Directive 3340-049B. The page opens with the rule that matters most: "All travelers crossing the United States border are subject to CBP inspection." That includes phones, laptops, tablets and cameras, and it applies to citizens and non-citizens, arriving or departing.
CBP sorts device searches into two kinds:
- Basic search. Any search that is not an advanced one. In practice an officer looks through the phone by hand, without connecting equipment. Photos, messages, notes and files on the device can all be looked at.
- Advanced search. An officer connects equipment, wired or wireless, "to copy, and/or analyze the contents." CBP says this needs reasonable suspicion of a violation of a law CBP enforces, or a national security concern, plus approval from a senior manager.
The same page draws a line around the cloud. A search covers information "resident upon the device at the time it is presented for inspection," and officers "may not use the device to access information that is solely stored remotely." CBP says officers make sure network connections are switched off before a search.
How often phones are searched
The numbers are small compared with the number of travelers, which is worth knowing before worrying. For fiscal year 2026, CBP reports that it searched the electronic devices of 72,456 international travelers out of more than 416.5 million processed, about 0.017 percent of arriving travelers. CBP puts 91 percent of those searches in the basic category.
That said, the chance is not zero, and a search, when it happens, can reach every photo on the phone. The practical question is not whether a search is likely, but what you want to be carrying if one happens, and what you want to be carrying if the phone is lost on the same trip.
What happens if you do not unlock the phone
This is where the answer depends on who you are. CBP states it directly:
- US citizens. A citizen "will not be denied entry into the United States based on CBP's inability to complete an inspection of their device."
- Foreign nationals. CBP "may consider the foreign national's noncompliance and the inability to inspect the device" when it decides on admission.
- Either way, the device itself "may be subject to exclusion, detention, or other appropriate action or disposition."
CBP adds that passcodes collected for a search "will be deleted or destroyed when no longer needed to facilitate the search of a given device."
The Electronic Frontier Foundation's guide Digital Privacy at the U.S. Border (March 2017) describes the same split from a traveler's side: citizens cannot be kept out of the country, but a refusal can lead to a held device, more questions or a longer wait; lawful permanent residents may face questions about their status; visitors may be refused entry. The American Civil Liberties Union says the law here is still contested; it titled its own explainer "Can Border Agents Search Your Electronic Devices? It's Complicated" (April 2025, linked from the ACLU airport and port of entry rights page, last updated 5 August 2026). Courts in different parts of the country have ruled differently, so your situation is a question for a lawyer, not for an app.
How to travel with fewer private photos on the iPhone
Everything below is ordinary data hygiene. It is not about hiding anything from an officer; it is about not carrying a decade of personal life on a device that can be lost, stolen, borrowed or inspected on any trip. Steps checked on iOS 26 and iOS 27.
- Decide what needs to travel. Boarding passes, maps, a few photos of home. The rest of the camera roll can stay in your backup at home. EFF's border guide lists the same idea: carry less data.
- Empty Recently Deleted. In Photos > Collections > Utilities > Recently Deleted, tap Select > Delete All. Items you deleted last month are otherwise still there for up to 30 days.
- Clear old screenshots and saved images. The Screenshots collection under Media Types and Utilities > Recently Saved collect bank pages, chats and documents you no longer need.
- Check the Files app. Files > Recents and Downloads keep PDFs and scans long after you looked at them.
- Know what is signed in. CBP says officers may not open data stored only remotely, and that network connections are switched off before a search. What sits in apps offline, synced copies included, is on the device.
- Know your lock. Apple's page About Face ID advanced technology (published 18 September 2026) says the passcode is required after the phone restarts, and after you hold the side button and either volume button for 2 seconds to show the power-off screen. EFF's guide recommends a strong passcode and powering the device off before reaching a checkpoint.
What a vault changes, and what stays the same
A vault app is a second lock for chosen files. It is useful on a trip for the same reasons it is useful at home. It is not a legal tool, and it leaves every rule above exactly as it is. This table puts the two side by side.
| Situation | What CBP's rules or Apple's settings say | What a vault adds |
|---|---|---|
| Officer inspects the phone at the border | Every traveler and device is subject to inspection (CBP) | Nothing legal changes; an officer may ask you to open any app, the vault included |
| Advanced search with equipment | Allowed with reasonable suspicion and manager approval (CBP) | Vault files are stored encrypted on the device; that is not a promise about any search tool or agency |
| Data stored only in the cloud | Officers may not use the phone to open it (CBP) | Vault files live on the device, not in the cloud, unless you start a backup |
| Phone lost or stolen on the trip | The passcode guards the phone | Private files need a second PIN to open |
| Someone at a hotel or rental desk borrows the phone | They see whatever app is open | Private photos are not in the Photos app at all |
| A travel companion scrolls your camera roll | Photos and the Hidden album open with the phone passcode | Private photos sit in a separate app behind a separate PIN |
The honest summary: the vault matters for the second half of the table, the everyday half. For the first half, the rules apply the same way to every app and every file.
Do not use a decoy at a border inspection
Some vault apps, including Stash with Premium, offer a guest PIN that opens a second, separate vault. That is built for a common situation: handing the phone to a family member or a friend. It is not built for an inspection. Do not use a guest PIN, a second account or any other setup to give an officer a misleading picture of the phone. If you are worried about what a border search might reveal, the answer is to carry less and to ask a lawyer before the trip.
iCloud, backups and travel
Two settings decide what is on the phone and what is waiting at home.
- iCloud Photos keeps the full library on the device, as originals or as optimized versions. Turning it off is not a quick fix; it changes what is stored on every device.
- Encryption of the backup. Apple's iCloud data security overview lists Photos and iCloud Backup under standard data protection as encrypted in transit and on the server, with Apple holding the keys. Advanced Data Protection makes both end-to-end encrypted, with the keys on your trusted devices.
A good routine for a trip is a backup at home before you leave, a phone that carries only what the trip needs, and the rest restored when you are back.
When the iPhone's own tools are enough
For most trips, the built-in tools cover it:
- You cleared Recently Deleted, old screenshots and downloads before leaving.
- Nobody else knows your iPhone passcode, and you know how to require it quickly.
- The private photos you carry are few, and the Hidden album keeps them out of the main library view.
- Your library is backed up at home, ideally with Advanced Data Protection.
When you need more than the iPhone's own tools
Look at a separate vault when one of these is true:
- The phone gets handed around on the road. Hotel staff, a rental desk, a travel companion: the Hidden album opens with the same passcode as the phone.
- The private photos should not be in iCloud Photos. Hidden photos sync to every device on the Apple Account.
- You carry documents, not only photos. Passport scans, insurance papers and medical letters have no Hidden album.
- You want travel photos and private photos in different places, so showing someone the trip never means scrolling past the rest.
How to keep private photos apart for a trip with Stash
Stash looks and works like a calculator. Your PIN followed by = opens the vault. Imported items are encrypted on the device with AES-256, with the key held in the iOS Keychain, and stored inside the app, outside the Photos library and iCloud Photos.
- Install Stash from the App Store. It runs on iPhone and iPad with iOS 15 or later.
- Choose a PIN that differs from your iPhone passcode, and write down the recovery key that Stash shows once during setup. Keep it at home, not in the luggage.
- Create albums such as "Documents" and "Personal", so the few items that travel are easy to find.
- Tap + and import the photos and PDFs you want to keep private. Stash copies them in.
- Delete the originals in Photos and Files, then empty Utilities > Recently Deleted.
- Turn on Face ID or Touch ID and auto-lock, so the vault closes when you leave the app.
- With Premium, start an encrypted backup to your own iCloud Drive or Google Drive before the trip, so the files survive a lost phone.
A vault is a privacy tool for everyday life. At a border, the rules in the table above still apply, and you should follow an officer's lawful instructions.
FAQ
Can customs search the photos on my iPhone?
Yes. CBP says all travelers and their devices are subject to inspection at the US border, citizens included, and a basic search can cover the photos stored on the phone. Officers may not use the phone to open data stored only in the cloud.
Do I have to give CBP my iPhone passcode?
CBP says a US citizen will not be denied entry because a device could not be inspected, but the device may be held. For foreign nationals, CBP may consider the refusal when deciding on admission. What to do in your case is a question for a lawyer.
What is the difference between a basic and an advanced search?
A basic search is a look through the phone by hand. An advanced search connects equipment to copy or analyze the contents, and CBP says it needs reasonable suspicion or a national security concern plus a senior manager's approval.
Can border agents look at my iCloud Photos?
CBP says officers may not use your device to access information stored only remotely, and that network connections are disabled first. Photos already downloaded to the phone count as stored on the device.
Should I delete photos before international travel?
Carrying less is reasonable everyday hygiene, and EFF's border guide recommends it. Keep a backup at home first, and do not delete anything to mislead an officer; ask a lawyer if you are unsure.
Does a vault app keep photos away from a border search?
No. A vault adds a second PIN and keeps files out of the Photos app, which helps with a lost or borrowed phone. An officer can still ask you to open any app, and the rules are the same for every file on the device.
How do I make my iPhone ask for the passcode instead of Face ID?
Hold the side button and either volume button for 2 seconds until the power-off screen appears, then cancel. Apple says the passcode is then required, as it is after a restart.
The Bottom Line
CBP can inspect the photos on your iPhone at the US border. Its own page says every traveler and device is subject to inspection, that an advanced search with equipment needs reasonable suspicion and a manager's approval, and that officers may not open data held only in the cloud. The table above shows the split: the legal half is set by CBP, the courts and your status, and no app changes it.
What you control is what travels. Clear Recently Deleted, old screenshots and downloads; keep the full library backed up at home; know how to require the passcode. For the everyday risks of a trip, a lost phone, a borrowed phone, a companion scrolling through pictures, a vault with its own PIN keeps private photos apart from the rest. For questions about your rights, talk to a lawyer before you go.
·Written by the developer of Stash
Save this guide
Download this guide as an image