Skip to main contentSkip to navigation
All Your Base64

All Your Base64

A modern, efficient CLI utility and MCP server to convert files to base64 with comprehensive output options. Built with TypeScript for performance and developer experience.

CLI Tool
TypeScript
MCP Server
Base64
Developer Tools
Node.js
Open Source
GitHub

VISUAL SHOWCASE

Terminal screenshot showing ayb64 CLI tool in action with various encoding options and metadata output
Expand image

CLI Interface Demo

Command-line interface demonstration showing the tool's comprehensive output options, metadata display, and user-friendly error handling.

Modern Base64 Conversion Tool

Type
CLI Tool & MCP Server
Language
TypeScript
Package
ayb64 on NPM
Check mark

🎨 Eight Output Formats

Raw base64 strings for direct use
JSON format with comprehensive metadata
JavaScript and TypeScript modules for web development
CSS custom properties and HTML documents
XML, YAML, and Markdown formats for documentation
Data URIs ready for immediate web use
Check mark

🔍 Smart File Detection

Industry-leading MIME type detection using file-type and mime-types packages
Support for 100+ file types including images, documents, archives, and media
Automatic format recognition via magic numbers and binary signatures
Comprehensive metadata extraction including file size, creation dates, and checksums
Check mark

🤖 MCP Server for AI Workflows

Built-in Model Context Protocol server optimized for AI agents
Smart memory with LRU cache and job recall by ID
Change detection using SHA256 checksums
Specialized tools for encoding, decoding, data URI generation, and job management
Check mark

⚡ Performance & Reliability

Memory-efficient implementation with optimized heap usage
Cross-platform support: macOS, Linux, Windows, Docker, Cloud
Comprehensive error handling with helpful suggestions
Benchmarked performance scaling reasonably with file size

Technology Stack

TypeScript
Node.js CLI
Commander.js
file-type & mime-types
Vitest Testing
ESLint & Prettier
Model Context Protocol (MCP)
NPM Package Distribution

Beyond Basic Conversion

While basic base64 tools simply convert files to strings, All Your Base64 provides a complete modern solution with eight output formats, AI integration through MCP server, smart detection of 100+ file types, rich metadata, web-ready data URIs, and production-ready reliability. Perfect for developers who need more than just basic file-to-base64 conversion.

🚀 Developer Impact

All Your Base64 transforms the traditionally simple task of base64 encoding into a powerful, modern development tool. By providing multiple output formats, comprehensive metadata, and AI workflow integration through its MCP server, developers can seamlessly incorporate base64 conversion into their projects, CI/CD pipelines, and AI-assisted development workflows. The tool's intelligent file detection and cross-platform reliability make it an essential utility for modern web development and automation tasks.

Cookie Consent

We only use cookies for site functionality and avoid any kind of tracking cookies or privacy invasive software.

Privacy-First Approach

Our optional Cloudflare analytics is privacy-focused and doesn't use cookies or track personal data.