# Source: https://docs.convex.dev/api/namespaces/values.Base64.md

# Namespace: Base64

[values](/api/modules/values.md).Base64

## Functions[​](#functions "Direct link to Functions")

### byteLength[​](#bytelength "Direct link to byteLength")

▸ **byteLength**(`b64`): `number`

#### Parameters[​](#parameters "Direct link to Parameters")

| Name  | Type     |
| ----- | -------- |
| `b64` | `string` |

#### Returns[​](#returns "Direct link to Returns")

`number`

#### Defined in[​](#defined-in "Direct link to Defined in")

[values/base64.ts:44](https://github.com/get-convex/convex-js/blob/main/src/values/base64.ts#L44)

***

### toByteArray[​](#tobytearray "Direct link to toByteArray")

▸ **toByteArray**(`b64`): `Uint8Array`

#### Parameters[​](#parameters-1 "Direct link to Parameters")

| Name  | Type     |
| ----- | -------- |
| `b64` | `string` |

#### Returns[​](#returns-1 "Direct link to Returns")

`Uint8Array`

#### Defined in[​](#defined-in-1 "Direct link to Defined in")

[values/base64.ts:56](https://github.com/get-convex/convex-js/blob/main/src/values/base64.ts#L56)

***

### fromByteArray[​](#frombytearray "Direct link to fromByteArray")

▸ **fromByteArray**(`uint8`): `string`

#### Parameters[​](#parameters-2 "Direct link to Parameters")

| Name    | Type         |
| ------- | ------------ |
| `uint8` | `Uint8Array` |

#### Returns[​](#returns-2 "Direct link to Returns")

`string`

#### Defined in[​](#defined-in-2 "Direct link to Defined in")

[values/base64.ts:123](https://github.com/get-convex/convex-js/blob/main/src/values/base64.ts#L123)

***

### fromByteArrayUrlSafeNoPadding[​](#frombytearrayurlsafenopadding "Direct link to fromByteArrayUrlSafeNoPadding")

▸ **fromByteArrayUrlSafeNoPadding**(`uint8`): `string`

#### Parameters[​](#parameters-3 "Direct link to Parameters")

| Name    | Type         |
| ------- | ------------ |
| `uint8` | `Uint8Array` |

#### Returns[​](#returns-3 "Direct link to Returns")

`string`

#### Defined in[​](#defined-in-3 "Direct link to Defined in")

[values/base64.ts:158](https://github.com/get-convex/convex-js/blob/main/src/values/base64.ts#L158)