<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/UInt",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:Su"
  },
  "title" : "UInt"
}
-->

# UInt

An unsigned integer value type.

```
@frozen struct UInt
```

## Overview

On 32-bit platforms, `UInt` is the same size as `UInt32`, and
on 64-bit platforms, `UInt` is the same size as `UInt64`.

## Relationships

### Conforms To

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

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

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

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

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

[`MetadataValue`](/documentation/USDKit/USDStage/Object/MetadataValue)

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

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

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

[`CVAttachmentValueRepresentable`](/documentation/CoreVideo/CVAttachmentValueRepresentable)

[`Plottable`](/documentation/Charts/Plottable)

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

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

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

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

[`CKRecordValueProtocol`](/documentation/CloudKit/CKRecordValueProtocol)

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

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

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

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

[`USDValueProtocol`](/documentation/USDKit/USDValueProtocol)

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

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

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

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

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

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

[`Value`](/documentation/USDKit/USDPrim/Attribute/Value)

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

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

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

[`PrimitivePlottableProtocol`](/documentation/Charts/PrimitivePlottableProtocol)

---

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)