---
title: isHexDigit
framework: swift
role: symbol
role_heading: Instance Property
path: swift/character/ishexdigit
---

# isHexDigit

A Boolean value indicating whether this character represents a hexadecimal digit.

## Declaration

```swift
var isHexDigit: Bool { get }
```

## Discussion

Discussion Hexadecimal digits include 0-9, Latin letters a-f and A-F, and their fullwidth compatibility forms. To get the character’s value, use the hexDigitValue property.

## See Also

### Checking a Character’s Numeric Properties

- [isNumber](swift/character/isnumber.md)
- [isWholeNumber](swift/character/iswholenumber.md)
- [wholeNumberValue](swift/character/wholenumbervalue.md)
- [hexDigitValue](swift/character/hexdigitvalue.md)
