<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [lite](./firestore_lite.md) &gt; [Bytes](./firestore_lite.bytes.md) &gt; [toBase64](./firestore_lite.bytes.tobase64.md)

## Bytes.toBase64() method

Returns the underlying bytes as a Base64-encoded string.

<b>Signature:</b>

```typescript
toBase64(): string;
```
<b>Returns:</b>

string

The Base64-encoded string created from the `Bytes` object.

