Upload a file
  1. base64hub
  2. Download
v1.0.0 · Open source · MIT

Base64 in your terminal, your code and your browser

The b64 command line tool, packages for Node.js and Python, an MCP server for AI assistants, a Chrome extension, a free HTTP API and a Telegram bot. All of them follow the same rules, and all are free and MIT-licensed.

brew install base64hub-com/tap/b64

Every way to use base64hub

One set of Base64 rules, seven places to run it.

All downloads

Prebuilt b64 binaries from GitHub Releases. One file to unpack, nothing else to install.

Release archive

Why install anything

The same Base64 rules as the website, outside the browser tab.

Zero dependencies

The b64 release is a single Go executable. The npm and PyPI packages use only Node.js built-ins and the Python standard library.

Made for pipes

b64 reads stdin and writes stdout, or files with -i and -o. Exit codes tell a script whether the input or the command was wrong.

Streams big input

The Go build encodes and decodes stdin in chunks, so a multi-gigabyte file never has to fit in memory.

A forgiving decoder

Line breaks, spaces, a data: prefix, missing padding and either alphabet are accepted. Real errors name the bad character and its position.

Right-click in Chrome

Select text on a page, choose Encode or Decode from the context menu, and the extension opens with the selection loaded.

MIT licensed

Every repository is MIT-licensed, so you can fork the code or bundle it into your own project.

Open source

Every product is a small MIT-licensed repository.

github.com/base64hub-com

FAQ

Which install method should I use for the b64 CLI?

Homebrew on macOS and Linux, Scoop or winget on Windows, yay -S b64-bin on Arch. If Node.js or Python is already installed, npm i -g base64hub or pipx install base64hub gives you the same b64 command. The CLI docs list every option.

How do I check that a downloaded binary is genuine?

Each release ships a SHA256SUMS file. On Linux run sha256sum -c SHA256SUMS --ignore-missing in the download folder; on macOS compare the output of shasum -a 256 for your file with its line in SHA256SUMS.

Do the CLI, the packages and the API give the same results?

Yes. All of them follow one written specification and run the same test vectors, so encoding, decoding and validation agree byte for byte.

Does any of this send my data to base64hub?

The CLI, the npm and PyPI packages and the MCP server work on your machine. The HTTP API and the Telegram bot have to receive your input to answer; the API does not store or log request bodies.

Is it free?

Yes, with no account and no API key. The HTTP API allows 20 requests per 10 seconds per IP address, which is plenty for scripts and testing.