# Base64 Encoder / Decoder

Encode text and files to Base64 or decode Base64 strings back to readable format. Essential for embedding data in URLs, APIs, and configuration files.

## What is Base64 encoding?

Base64 encoding converts binary or text data into ASCII characters. It's commonly used to embed images in HTML/CSS, transmit data over protocols that only support text, or encode credentials in HTTP headers.

## Embed data anywhere

Base64 encoding is what you need when binary data has to travel through a text-only channel. An image can be embedded straight into HTML with a data URI:`data:image/png;base64,...`, which removes an HTTP request and keeps everything self-contained.

### API credentials and headers

Many APIs require credentials to be Base64 encoded in the **Authorization** header. HTTP Basic Authentication uses the format`Basic base64(username:password)`. Use this to generate the correct header value.

### Debug encoded tokens

Some systems encode configuration data, session tokens or cookies in Base64. If you are debugging an application and see a mysterious Base64 string, decode it here to reveal the actual content, assuming it is not also encrypted.

## Questions

### What are common uses of Base64?

### Does Base64 encrypt data?

### Why does Base64 increase file size?

### Can I encode non-English characters?
