---
title: MIME_HEADER_DECODE
url: https://www.tines.com/docs/formulas/functions/mime-header-decode/
kind: formula-function
---

*[tines.com](https://www.tines.com/llms.txt) › [Docs](https://www.tines.com/llms.txt) › [Formulas](https://www.tines.com/llm/docs/formulas.md) › [Functions](https://www.tines.com/llm/docs/formulas/functions.md)*

# MIME_HEADER_DECODE

*[View on tines.com](https://www.tines.com/docs/formulas/functions/mime-header-decode/)*

Decodes email header fields encoded in accordance with RFC 2047.

**Categories:** Data Parsing/Conversion

## Syntax

```
MIME_HEADER_DECODE(encoded_string, target_encoding = "utf-8")
```

## Examples

### Example 1

Formula:

```
MIME_HEADER_DECODE(encoded_string, target_encoding = "utf-8")
```

Output:

```json
"Decoded email header field"
```

### Example 2

Formula:

```
MIME_HEADER_DECODE("=?US-ASCII?Q?John_Smith?= <smith / gmail.com>")
```

Output:

```json
"John Smith <smith / gmail.com>"
```
