---
schema_version: "1"
id: 56d81103bb3acde5437269247eaafbd573ac7861d8834128f465e96ee3208d5f
title: Text Plain Format
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.12/dataweave-formats-text.md
canonical_url: https://docs.mulesoft.com/dataweave/2.12/dataweave-formats-text
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 86c2f6b5ae0ebe99d27b1cfe5cd58f21dd5e5f804cb7de5b3b726ae72ed6d1a4
description: MuleSoft Documentation Site
release: "2.12"
latest: false
---
---
product: DataWeave
version: 2.12
keywords: format, text, text/plain, text/plain
---

# Text Plain Format

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

MIME type: `text/plain`

ID: `text`

The Text Plain format represents text as a string.

Note that DataWeave parses, encodes, and stores this format into RAM memory.

## Example

This example shows how DataWeave represents Text Plain data.

### Input

The Plain Text data serves as the input payload to the DataWeave source.

```txt
This is text plain
```

### Source

The DataWeave script transforms the Text PLain input payload to the DataWeave (dw) format and MIME
type. It returns a string.

```dataweave
output application/dw
---
payload
```

### Output

Because the DataWeave (dw) output is a string, it is wrapped in quotation marks.

```dataweave
"This is text plain"
```

## Configuration Properties

DataWeave supports the following configuration properties for this format.

### Reader Properties

There are no reader properties for this format.

### Writer Properties

This format accepts properties that provide instructions for writing output data.

<table><colgroup><col> <col> <col> <col></colgroup><thead><tr><th>Parameter</th><th>Type</th><th>Default</th><th>Description</th></tr></thead><tbody><tr><td><p><code>bufferSize</code></p></td><td><p><code>Number</code></p></td><td><p><code>8192</code></p></td><td><div><div><p>Size of the buffer writer, in bytes. The value must be greater than <code>8</code>.</p></div></div></td></tr><tr><td><p><code>deferred</code></p></td><td><p><code>Boolean</code></p></td><td><p><code>false</code></p></td><td><div><div><p>Generates the output as a data stream when set to <code>true</code>, and defers the script’s execution until the generated content is consumed.</p></div><div><p>Valid values are <code>true</code> or <code>false</code>.</p></div></div></td></tr><tr><td><p><code>encoding</code></p></td><td><p><code>String</code></p></td><td><p><code>null</code></p></td><td><div><div><p>The encoding to use for the output, such as UTF-8.</p></div></div></td></tr></tbody></table>

## Supported MIME Types

This format supports the following MIME types.

<table><colgroup><col></colgroup><thead><tr><th>MIME Type</th></tr></thead><tbody><tr><td><p><code>text/plain</code></p></td></tr></tbody></table>
