ToolPick

Base64 encoder and decoder

Encode and decode UTF-8 text and small files as Base64, including URL-safe variants.

How it works

Text uses UTF-8 via TextEncoder and TextDecoder. Standard Base64 uses + and /; URL-safe mode uses - and _ and may omit padding. File encoding reads bytes locally up to 5 MB and builds a data URL. Nothing is uploaded.

Runs in your browser; nothing is uploaded.

FAQ

What is URL-safe Base64?

It replaces + with - and / with _ so the string can sit in URL query parameters without extra encoding. Some APIs expect padding; this tool can add or strip = padding.

Why does my decoded text look wrong?

Base64 only carries bytes. If the original was not UTF-8, the decoder still interprets bytes as UTF-8 and may show replacement characters. Confirm the original encoding.

Is there a size limit?

Text fields are limited by browser memory; file encoding stops at 5 MB per file to keep the tab responsive.

Related developer tools

Bookmark this page for next time, or copy its link. Shared links contain no working input.

Link to this tool: https://www.toolpick.dev/free-tools/base64