---
title: bigEndian
framework: swift
role: symbol
role_heading: Instance Property
path: swift/int/bigendian
---

# bigEndian

The big-endian representation of this integer.

## Declaration

```swift
var bigEndian: Self { get }
```

## Discussion

Discussion If necessary, the byte order of this value is reversed from the typical byte order of this integer type. On a big-endian platform, for any integer x, x == x.bigEndian.

## See Also

### Working with Byte Order

- [byteSwapped](swift/int/byteswapped.md)
- [littleEndian](swift/int/littleendian.md)
- [init(littleEndian:)](swift/int/init(littleendian:).md)
- [init(bigEndian:)](swift/int/init(bigendian:).md)
