---
title: Bool Data Type reference
meta:
    description: Documentation for the Bool data type.
headingMaxLevels: 2
---

# Bool

The `Bool` data type represents a truth value, storing either `true` or `false`. Internally, it is stored as an 8-bit unsigned integer (`UInt8`), where `true` corresponds to `1` and `false` to `0`.

```sql
SELECT true AS col, toTypeName(col)
```

Result:

```result
┌─col──┬─toTypeName(true)─┐
│ true │ Bool             │
└──────┴──────────────────┘
```

```sql
SELECT true == 1 AS col, toTypeName(col)
```

Result:

```result
┌─col─┬─toTypeName(equals(true, 1))─┐
│   1 │ UInt8                       │
└─────┴─────────────────────────────┘
```
