How do you find the UDID for an iOS device on Mac and Windows?
You can follow the official how-to from Apple KB.
The same way works for iPhone, iPod and iPad.
The easiest way is to plug your iDevice, open iTunes, click on your device on the left panel of iTunes then click on the serial number. Your UDID will appear :
An alternative for those who don't actually run iTunes (yes there are alternatives) is to open the
System Profiler, access the
USB section, find the iPhone on the list of connected devices under the USB device tree.
On the iPhone listing there will be an entry that says
serial number. This is not to be confused with the serial number listed in the General -> About section of the iPhone settings. The serial in the System Profiler is equivalent to the UDID.
Note that on Lion, System Profiler has been renamed System Information and you can get the the USB information from the hardware portion of the System Report.
While all the methods described so far require the iPhone/iPod Touch/iPad to be connected to a computer, there are a large number of free applications available in the App Store to find the UDID without needing to do this (and, thus, effectively working on Mac, Windows, and indeed anything else).
The one I use and generally recommend to remote clients is Erica Sadun's Ad Hoc Helper (screenshot, etc., at below link):
Which extracts the UDID and places it in an e-mail ready to be sent to whoever needs it, but a quick search of the iTunes store for "UDID" reveals half a dozen or so apps all intended to do this and any of which would do the job.