---
schema_version: "1"
id: 3bc33efda80f6cdd56ae4caf158fca625a4da4d1d87b715d8772ff54c69288e4
title: Text Plain Format
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.6/dataweave-formats-text.md
canonical_url: https://docs.mulesoft.com/dataweave/2.6/dataweave-formats-text
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 000e758e382daf031d27c7e3b4dca5b9e6d2d5e9cdcc2e40c428488803316860
description: MuleSoft Documentation Site
release: "2.6"
latest: false
---
---
product: DataWeave
version: 2.6
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>
