<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/UInt128",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:s7UInt128V"
  },
  "title" : "UInt128"
}
-->

# UInt128

A 128-bit unsigned integer value type.

```
@frozen struct UInt128
```

## Topics

### Operators

[`static func != (UInt128, UInt128) -> Bool`](/documentation/Swift/UInt128/!=(_:_:))

### Initializers

[`init(bitPattern: Int128)`](/documentation/Swift/UInt128/init(bitPattern:))

Creates a new instance with the same memory representation as the given
value.

### Default Implementations

[AdditiveArithmetic Implementations](/documentation/Swift/UInt128/AdditiveArithmetic-Implementations)

[AtomicRepresentable Implementations](/documentation/Swift/UInt128/AtomicRepresentable-Implementations)

[BinaryInteger Implementations](/documentation/Swift/UInt128/BinaryInteger-Implementations)

[Comparable Implementations](/documentation/Swift/UInt128/Comparable-Implementations)

[CustomReflectable Implementations](/documentation/Swift/UInt128/CustomReflectable-Implementations)

[Decodable Implementations](/documentation/Swift/UInt128/Decodable-Implementations)

[Encodable Implementations](/documentation/Swift/UInt128/Encodable-Implementations)

[Equatable Implementations](/documentation/Swift/UInt128/Equatable-Implementations)

[ExpressibleByIntegerLiteral Implementations](/documentation/Swift/UInt128/ExpressibleByIntegerLiteral-Implementations)

[FixedWidthInteger Implementations](/documentation/Swift/UInt128/FixedWidthInteger-Implementations)

[Hashable Implementations](/documentation/Swift/UInt128/Hashable-Implementations)

[Numeric Implementations](/documentation/Swift/UInt128/Numeric-Implementations)

[Strideable Implementations](/documentation/Swift/UInt128/Strideable-Implementations)

[UnsignedInteger Implementations](/documentation/Swift/UInt128/UnsignedInteger-Implementations)

## Relationships

### Conforms To

[`Encodable`](/documentation/Swift/Encodable)

[`LosslessStringConvertible`](/documentation/Swift/LosslessStringConvertible)

[`FixedWidthInteger`](/documentation/Swift/FixedWidthInteger)

[`Numeric`](/documentation/Swift/Numeric)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`CustomReflectable`](/documentation/Swift/CustomReflectable)

[`Copyable`](/documentation/Swift/Copyable)

[`BinaryInteger`](/documentation/Swift/BinaryInteger)

[`Hashable`](/documentation/Swift/Hashable)

[`Escapable`](/documentation/Swift/Escapable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Comparable`](/documentation/Swift/Comparable)

[`Strideable`](/documentation/Swift/Strideable)

[`ConvertibleToBytes`](/documentation/Swift/ConvertibleToBytes)

[`Decodable`](/documentation/Swift/Decodable)

[`ExpressibleByIntegerLiteral`](/documentation/Swift/ExpressibleByIntegerLiteral)

[`Sendable`](/documentation/Swift/Sendable)

[`AtomicRepresentable`](/documentation/Synchronization/AtomicRepresentable)

[`AdditiveArithmetic`](/documentation/Swift/AdditiveArithmetic)

[`UnsignedInteger`](/documentation/Swift/UnsignedInteger)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`ConvertibleFromBytes`](/documentation/Swift/ConvertibleFromBytes)

[`Equatable`](/documentation/Swift/Equatable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)