---
title: string
framework: virtualization
role: symbol
role_heading: Instance Property
path: virtualization/vzmacaddress/string
---

# string

The MAC address as a formatted string.

## Declaration

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

## Discussion

Discussion The string contains the 6 hexadecimal bytes of the MAC address, separated by colon characters. Alphabetical characters are lowercase in the string. An example string is 01:23:45:ab:cd:ef.

## See Also

### Getting the address

- [ethernetAddress](virtualization/vzmacaddress/ethernetaddress.md)
