<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [/](./firestore_.md) &gt; [Bytes](./firestore_.bytes.md) &gt; [fromBase64String](./firestore_.bytes.frombase64string.md)

## Bytes.fromBase64String() method

Creates a new `Bytes` object from the given Base64 string, converting it to bytes.

<b>Signature:</b>

```typescript
static fromBase64String(base64: string): Bytes;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  base64 | string | The Base64 string used to create the <code>Bytes</code> object. |

<b>Returns:</b>

[Bytes](./firestore_.bytes.md)

