---
title: uuidString
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsuuid/uuidstring
---

# uuidString

The UUID as a string.

## Declaration

```swift
var uuidString: String { get }
```

## Discussion

Discussion A string containing a formatted UUID for example E621E1F8-C36C-495A-93FC-0C247A3E6E5F. Use this property when you need a string representation of the NSUUID object—for example, to compare with a CFUUID object.

## See Also

### Get UUID Values

- [getBytes(_:)](foundation/nsuuid/getbytes(_:).md)
