
Company News
Jerod Santo Joins Socket as Head of Media
Allow myself to introduce... myself.
base64-tool
Advanced tools
Encode and decode Base64 strings with UTF-8 support. Simple, fast, zero-dependency Base64 utility for Node.js and browsers.
Encode and decode Base64 strings with UTF-8 support. Simple, fast, zero-dependency Base64 utility for Node.js and browsers.
Love these tools? Support development via Open Collective
Get access to 20+ premium tools including SQL to Code, Data Faker, JWT Generator, and more — all for $9 one-time.
💡 Pay with Crypto: BTC, ETH, USDT (TRC-20), SOL accepted. View crypto addresses
This package is part of DevKits — 82+ free developer tools. The online Base64 tool supports file upload, batch encoding, and URL-safe variants.
→ Try Online with Advanced Features
npm install @devkits/base64-tool
const { encode, decode, encodeURLSafe, isValidBase64 } = require('@devkits/base64-tool');
// Encode a string to Base64
const encoded = encode('Hello, 世界!');
// 'SGVsbG8sIOS4lueVjCE='
// Decode Base64 back to string
const decoded = decode('SGVsbG8sIOS4lueVjCE=');
// 'Hello, 世界!'
// URL-safe Base64 (no padding, replaces + and /)
const urlSafe = encodeURLSafe('Hello+World/Test');
// 'SGVsbG8rV29ybGRfVGVzdA'
// Validate Base64 strings
isValidBase64('SGVsbG8='); // true
isValidBase64('invalid!!'); // false
encode(input)Encodes a string to Base64 with UTF-8 support.
decode(input)Decodes a Base64 string with UTF-8 support. Throws an error for invalid input.
encodeURLSafe(input)Encodes a string to URL-safe Base64 (uses - and _ instead of + and /, no padding).
isValidBase64(input)Checks if a string is valid Base64 (standard or URL-safe format).
Free Tools (82+):
| Tool | Description |
|---|---|
| chmod-calculator | Unix permissions converter |
| cron-parser | Cron expression parser |
| csv-json-converter | CSV ↔ JSON converter |
| diff-checker | Text comparison (LCS) |
| docker-compose-parser | Docker Compose parser |
Unlock 20+ premium tools with a single payment:
💡 Pay with Crypto: BTC, ETH, USDT (TRC-20), SOL accepted
| Product | Description |
|---|---|
| Invoicely | Free invoice generator for freelancers |
| SnapOG | Free OG image generator (20+ templates) |
MIT
FAQs
Encode and decode Base64 strings with UTF-8 support. Simple, fast, zero-dependency Base64 utility for Node.js and browsers.
We found that base64-tool demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Allow myself to introduce... myself.

Research
/Security News
A Twitch browser extension on Chrome and Firefox forwards users’ live OAuth session tokens through proxies controlled by a Russian bot service.

Security News
Anthropic found biased reasoning and recklessness drove Claude Mythos 5 to publish malware on PyPI and compromise a security vendor.