Use Base64 correctly in APIs, files and web applications.
Base64 represents data using printable ASCII characters. It is useful when binary or Unicode data must travel through a text-based format such as JSON, XML, email or a data URL.
Standard and URL-safe Base64
Standard Base64 can include plus and slash characters. URL-safe Base64 replaces them with hyphen and underscore so the result is easier to place inside URLs.
Why the output is larger
Base64 normally increases data size by roughly one-third because three source bytes are represented using four Base64 characters.
UTF-8 support
This page converts text through UTF-8 bytes, allowing non-English text, accented characters and emoji to be encoded and decoded safely.
Common uses
- API payloads and test fixtures
- Data URLs for small assets
- Binary values inside JSON
- Email transfer formats
- Configuration and environment values
