Upload a file
  1. base64hub
  2. Docs
  3. Chrome extension

Chrome Extension Guide

The base64hub extension adds a Base64 encoder and decoder to the Chrome toolbar and to the right-click menu. It needs Chrome 127 or later.

The popup

Click the base64hub icon in the toolbar to open the popup.

ControlWhat it does
Encode / DecodeSwitches the direction.
SelectionLoads the text selected on the current page into the input.
URL-safeEncodes with - and _ instead of + and /.
No paddingLeaves out the trailing =.
data: URIWraps the result as data:text/plain;charset=utf-8;base64,…. A data URI always uses the standard alphabet with padding.
CopyCopies the result.

Encoding takes any text as UTF-8. Decoding reads standard and URL-safe Base64, with or without padding, and ignores line breaks. Errors name the problem, for example a wrong character and its position. Decoded bytes that are not UTF-8 text are shown as hex with a note.

The links at the bottom open Image to Base64, the JWT decoder and all tools on this site.

Right-click menu

Select text on a page and right-click. Two items appear:

  • Encode with base64hub
  • Decode with base64hub

Each opens the popup with the selection loaded and the result computed. If Chrome cannot open the popup at that moment, the extension opens it in a small window instead.

Some pages, such as the Chrome Web Store and chrome:// pages, do not allow extensions to read them; there the popup tells you so and you can paste the text instead.

Permissions

PermissionUsed for
contextMenusThe two right-click menu items.
activeTabAccess to the current tab, only after you click the icon or a menu item.
scriptingReading the selected text on that tab, at that moment.
storageYour options and the cached footer items, in chrome.storage.local.

The extension requests no host permissions, so it cannot read pages in the background or on a schedule. It contains no remote code and no analytics.

Network and privacy

What you type, paste or select is processed inside the extension and is never sent anywhere.

The only network request fetches the footer items: a short list of links shown at the bottom of the popup and marked Ad. The extension requests

https://base64hub.com/data/ext/v1/<locale>/items.json

where <locale> is one of en de es fr pt ru ja ko zh, matching your browser language, with English as the fallback. The list is cached for 24 hours. If the request fails, the extension uses the last cached list, then a list built into the extension. Items are shown as plain text; the request itself carries nothing but the language in its path.

Firefox, Edge and other browsers

The extension is made for Chrome and published in the Chrome Web Store. Everywhere else, the Base64 encoder and decoder on this site do the same work in a tab and also run locally.

Updated Nov 22, 2026