The three ways to connect your iPhone to your computer
You can connect your iPhone to a computer using a USB cable, Wi-Fi, or by using your phone's screen mirroring feature. The method you choose depends on what you want to do — transfer files, back up your phone, sync music, or simply view your phone's screen on a larger display.
On Windows, you'll use iTunes or the Files app. On Mac, you'll use Finder or iTunes depending on your macOS version. Each method works slightly differently, and some require setup steps before your first connection.
Key Takeaways
- A USB cable is the fastest way to transfer large files and the most reliable for backups, but requires a compatible cable for your iPhone model.
- Wi-Fi syncing lets you back up and transfer files without plugging in, but both devices must be on the same network and you need to set it up once with a cable first.
- Screen mirroring (AirPlay on Mac, Cast on Windows with third-party apps) shows your iPhone display on your computer but doesn't transfer files.
- On Mac, Finder handles file transfers and backups; on Windows, use iTunes or the Files app depending on what you're doing.
- Your computer may ask you to trust the iPhone the first time you connect — tap "Trust" on your phone to proceed.
Connecting with a USB cable on Windows
Plug your iPhone into your Windows computer using a USB cable. The cable must match your iPhone model: iPhones from iPhone 15 onward use USB-C, while older models use the Lightning connector. If you don't have the right cable, you'll need to purchase one before you can connect.
When you plug in, your iPhone will ask "Trust This Computer?" on its screen. Tap Trust, then enter your iPhone passcode if prompted. Without this step, your computer won't be able to see your phone's files.
On Windows 10 and 11, open iTunes or the Files app. iTunes appears in your Start menu if you installed it; the Files app is built into Windows. In either program, your iPhone will show up in the sidebar. From there you can back up your phone, transfer photos, or sync music and videos.
Connecting with a USB cable on Mac
Plug your iPhone into your Mac using the correct USB cable for your model. On your iPhone, tap Trust when asked, then enter your passcode if needed.
On Mac, open Finder (the blue and white face icon in your dock). Your iPhone appears in the sidebar under "Locations." Click it to see your phone's storage, transfer files, or start a backup. On older Macs running macOS Catalina or earlier, use iTunes instead of Finder — it works the same way.
Setting up Wi-Fi syncing so you don't need a cable
Wi-Fi syncing lets you back up your iPhone and transfer files without plugging in a cable. You must set this up once using a USB cable first — Wi-Fi syncing doesn't work until you've connected at least once.
Plug in your iPhone with a cable. On Mac, open Finder and click your iPhone in the sidebar. Check the box that says Show this iPhone when on Wi-Fi. On Windows, open iTunes, click your iPhone at the top, go to Summary, and check Sync with this iPhone over Wi-Fi. Click Apply or Done.
From now on, when your iPhone and computer are on the same Wi-Fi network and plugged into power, they'll sync automatically. You can also manually sync by opening Finder or iTunes and clicking the sync button next to your phone's name.
Using screen mirroring to view your iPhone on your computer
Screen mirroring shows your iPhone's display on your computer screen. On Mac, this is built in through AirPlay. On Windows, you'll need a third-party app like Reflector or ApowerMirror, though some newer Windows 11 computers have a built-in casting feature.
On Mac, swipe down from the top-right corner of your iPhone to open Control Center. Tap Screen Mirroring, then select your Mac's name from the list. Your iPhone screen appears on your Mac. To stop, swipe down again and tap Screen Mirroring, then Stop Mirroring.
Screen mirroring is useful for presentations, troubleshooting, or showing someone else what's on your phone. It does not transfer files or back up your data — it only displays what you see on your phone.
Troubleshooting when your computer doesn't recognize your iPhone
If your computer doesn't see your iPhone after plugging in, first check that you tapped Trust on your phone and entered your passcode. Without this step, the connection won't work.
Try a different USB port on your computer, or borrow a different USB cable if you have one. Cables wear out and ports can fail. If you're using a third-party cable, try an Apple-branded or certified cable instead — some cheaper cables don't carry data, only power.
On Windows, open Device Manager (search for it in the Start menu) and look for your iPhone under "Portable Devices." If you see a yellow warning icon, right-click it and select Update driver. On Mac, restart both your computer and iPhone, then try again.
If your iPhone still won't connect, restart iTunes or Finder, then restart your computer. Unplug the iPhone, wait 10 seconds, and plug it back in.
What you can and cannot do over each connection type
| Task | USB Cable | Wi-Fi Sync | Screen Mirroring |
|---|---|---|---|
| Back up your iPhone | Yes | Yes | No |
| Transfer photos and videos | Yes | Yes | No |
| Sync music and apps | Yes | Yes | No |
| View your iPhone screen on computer | No | No | Yes |
| Speed (for large files) | Fastest | Slower | N/A |
Frequently Asked Questions
Do I need iTunes to connect my iPhone to a computer?
On Mac, no — Finder handles everything iTunes used to do. On Windows, you can use iTunes, but the Files app also works for transferring photos and documents. iTunes is still useful on Windows if you want to sync music or manage apps, but it's not required for basic file transfer.
Can I connect my iPhone to a computer without a cable?
Yes, through Wi-Fi syncing, but you must set it up with a cable first. Once enabled, your iPhone and computer will sync automatically when they're on the same network. Screen mirroring also works wirelessly, though it only displays your screen rather than transferring files.
Why does my computer ask me to trust my iPhone every time I plug it in?
This usually means you didn't tap Trust on your iPhone the first time you connected, or you tapped Don't Trust by mistake. Plug in again, tap Trust on your iPhone, and enter your passcode. Your computer should remember it after that.
Is it safe to leave my iPhone plugged into my computer?
Yes, it's safe. Leaving your iPhone plugged in won't damage the battery or the phone. However, if Wi-Fi syncing is enabled, your phone will sync automatically whenever it's plugged in and on the same network, which may use data if you're syncing large files.
What's the difference between backing up over USB and Wi-Fi?
USB backups are faster and more reliable, especially for large phones. Wi-Fi backups are slower but more convenient since you don't need a cable. Both create the same backup file on your computer, so choose based on what matters more to you — speed or convenience.