---
title: "Decode Base64"
description: "Turn a Base64 string back into readable text or raw bytes."
---

> Documentation Index
> Fetch the complete documentation index at: https://help.serialize.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Decode Base64

import RecipeInstallButton from "../../../components/RecipeInstallButton.astro";

## What it can do

- Decode the standard Base64 alphabet
- Ignore whitespace safely
- Feed the recovered bytes into additional operations

## Recipe

```text
From Base64 → output
```

## Demonstration

Input:

```text
U28gbG9uZyBhbmQgdGhhbmtzIGZvciBhbGwgdGhlIGZpc2gu
```

Expected output:

```text
So long and thanks for all the fish.
```

## Extend it

Add JSON Beautify for API payloads, Gunzip for a compressed wrapper, or To Hex when the decoded result is binary. Verify the bytes before assuming the next layer.

Source: https://help.serialize.dev/recipes/decode-base64/index.mdx
