Back to Home
Base64 Encode vs. Base64 Decode: Which One Do You Need?
These two tools are exact inverses of each other. Here's how to tell which direction you actually need.
| Base64 Encode | Base64 Decode | |
|---|---|---|
| What it does | Converts a file's raw bytes into Base64 text | Converts Base64 text back into the original file's bytes |
| Input | Any file — image, PDF, document, or otherwise | A block of Base64-encoded text |
| Output | A block of Base64 text you can copy or download | The original file, restored from its Base64 text |
| Typical use | Embedding a file's data directly inside JSON, CSS, or an HTML data: URI | Recovering a file from Base64 text pasted into an email, API response, or config file |
Related tools
- ToolBase64 Encode
- ToolBase64 Decode
- GlossaryWhat Is Base64 Encoding?