---
title: Decoder
framework: swift
role: symbol
role_heading: Protocol
path: swift/decoder
---

# Decoder

A type that can decode values from a native format into in-memory representations.

## Declaration

```swift
protocol Decoder
```

## Topics

### Instance Properties

- [codingPath](swift/decoder/codingpath.md)
- [userInfo](swift/decoder/userinfo.md)

### Instance Methods

- [container(keyedBy:)](swift/decoder/container(keyedby:).md)
- [singleValueContainer()](swift/decoder/singlevaluecontainer().md)
- [unkeyedContainer()](swift/decoder/unkeyedcontainer().md)

## See Also

### Encoders and Decoders

- [Encoder](swift/encoder.md)
- [EncodingError](swift/encodingerror.md)
- [DecodingError](swift/decodingerror.md)
