How to get UDID of iPhone

What is UDID?

A UDID is a 40 characters string of letters and numbers, sort of a serial number that uniquely identifies the particular iOS device including iPhones, iPads, and iPod touches. The alphanumeric code looks completely random to people but it is actually based on various hardware characteristics. Like a serial number, each iOS device has a UDID that refers to only that specific device. 

What is a UDID used for?

Since a UDID can be a reference to a specific iOS device, it can be used to connect other kinds of data to that device. For instance, UDID is used to connect a device to an iOS Developer Account which allows that device to install and test apps written by that developer, before their public release. Connecting the UDID to a developer account also allows that device to install the beta release of iOS for testing.

Here are the steps to find UDID.
  1. Launch iTunes and connect your iPhone, iPad, or iPod device.

  2. Under the device icon, click on the device name.

  3. Next, click on the ECID Number.

  4. This should be changed ECID to UDID after clicking.
  5. Choose 'Edit' and then 'Copy' from the iTunes menu.