---
description: "Learn more about: Text.ToBinary"
title: "Text.ToBinary"
---
# Text.ToBinary

## Syntax

<pre>
Text.ToBinary(<b>text</b> as nullable text, optional <b>encoding</b> as nullable number, optional <b>includeByteOrderMark</b> as nullable logical) as nullable binary
</pre>

## About

Encodes the given text value, `text`, into a binary value using the specified `encoding`.
