- base64hub
- Download
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/b64scoop bucket add base64hub https://github.com/base64hub-com/homebrew-tap
scoop install b64winget install base64hub.b64yay -S b64-bincurl -fsSL https://base64hub.com/install.sh | shnpm i -g base64hubpipx install base64hubgo install github.com/base64hub-com/base64hub-cli/cmd/b64@latest$ b64 "Hello, hub!" SGVsbG8sIGh1YiE= $ b64 -d SGVsbG8sIGh1YiE= Hello, hub! $ printf '\xfb\xff\xbf' | b64 --url -_-_ $ b64 --url --no-pad "Привет" 0J_RgNC40LLQtdGC
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.
Why install anything
The same Base64 rules as the website, outside the browser tab.
The b64 release is a single Go executable. The npm and PyPI packages use only Node.js built-ins and the Python standard library.
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.
The Go build encodes and decodes stdin in chunks, so a multi-gigabyte file never has to fit in memory.
Line breaks, spaces, a data: prefix, missing padding and either alphabet are accepted. Real errors name the bad character and its position.
Select text on a page, choose Encode or Decode from the context menu, and the extension opens with the selection loaded.
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.
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.