---
schema_version: "1"
id: 0b5127b0d8601bd5e4c58e65979a52dd0f9c93de2801c4c4a9805e0232fc5611
title: Text Plain Format
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.3/dataweave-formats-text.md
canonical_url: https://docs.mulesoft.com/dataweave/2.3/dataweave-formats-text
source_site: docs.mulesoft.com
content_type: documentation
content_hash: fcc35d28a4d0289f28bb39a5a858e6712f4db20c0f8d16133e540aefc8b3362e
description: MuleSoft Documentation Site
release: "2.3"
latest: false
---
---
product: DataWeave
version: 2.3
---

# 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 the Text Plain format.

### Reader Properties

There are no reader properties for Text Plain data.

### Writer Properties

The Text Plain 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 writer buffer.</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>When set to <code>true</code>, DataWeave generates the output as a data stream, and the script’s execution is deferred until it is consumed. 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>Encoding for the writer to use.</p></div></div></td></tr></tbody></table>

## Supported MIME Types

The Text Plain 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>
