
Security News
Happy Birthday, Shai-Hulud
It has been one year since Shai-Hulud made its first appearance on npm.
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.
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 Online Version: DevKits - Base64 Tool
| Package | Description |
|---|---|
| @devkits/json-formatter | Format and validate JSON |
| @devkits/chmod-calculator | Unix file permissions |
| @devkits/cron-parser | Parse cron expressions |
| @devkits/csv-json-converter | Convert between CSV and JSON |
| @devkits/diff-checker | Compare text differences |
| @devkits/docker-compose-parser | Parse docker-compose files |
| @devkits/env-editor | .env file utilities |
| @devkits/markdown-tools | Markdown parsing utilities |
| @devkits/regex-tester | Regular expression utilities |
Browse all 82 tools at DevKits
MIT
FAQs
Encode and decode Base64 strings with UTF-8 support. Simple, fast, zero-dependency Base64 utility for Node.js and browsers.
The npm package base64-tool receives a total of 0 weekly downloads. As such, base64-tool popularity was classified as not popular.
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.

Security News
It has been one year since Shai-Hulud made its first appearance on npm.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.

Security News
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.