@devtools-at/base64
v1.0.3
Published
Encode and decode Base64 strings with UTF-8 support
Downloads
347
Maintainers
Readme
Base64 Encoder/Decoder
Online Tool
Try Base64 Encoder/Decoder online at DevTools.at →
Use this tool directly in your browser - no installation required:
- No registration needed
- Works instantly in your browser
- Your data never leaves your device (100% client-side)
- Available in 20+ languages
- Free forever
What is Base64 Encoder/Decoder?
Encode and decode Base64 strings with UTF-8 support. This is a standalone TypeScript/JavaScript implementation that you can use in your own projects.
Features
- Zero Dependencies - Lightweight with no external dependencies
- TypeScript Support - Full type definitions included
- Browser & Node.js - Works in both environments
- UTF-8 Support - Handles international characters correctly
Usage
import { encode, decode } from '@devtools-at/base64';
// Encode text to Base64
const encoded = encode('Hello, World!');
console.log(encoded); // "SGVsbG8sIFdvcmxkIQ=="
// Decode Base64 back to text
const decoded = decode('SGVsbG8sIFdvcmxkIQ==');
console.log(decoded); // "Hello, World!"
// Works with UTF-8 characters
const emoji = encode('Hello 👋 World 🌍');
console.log(decode(emoji)); // "Hello 👋 World 🌍"API Reference
Core Functions
The source code in src/index.ts contains the core implementation. You can copy and use these functions directly in your project.
Related Tools
Check out our other free developer tools at DevTools.at:
| Tool | Description | |------|-------------| | JSON Formatter | Format and beautify JSON | | Base64 Encoder | Encode/decode Base64 | | Hash Generator | Generate MD5, SHA hashes | | UUID Generator | Generate random UUIDs | | Password Generator | Create secure passwords | | JWT Decoder | Decode JSON Web Tokens | | URL Encoder | Encode URL parameters | | Regex Tester | Test regular expressions |
Browse all 100+ free developer tools →
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT License - see the LICENSE file for details.
