Skip to main content
Version: 3.45.0

Blob.text()

The text() method of the Blob interface returns a Promise that resolves with a string containing the contents of the blob, interpreted as UTF-8.

Syntax​

text()

Parameters​

None.

Return value​

A Promise that resolves with a string containing the blob's data as a text string. The data is always interpreted as UTF-8.