b58uuid-1.0.1 has been yanked.
Visit the last successful build:
b58uuid-1.0.0
B58UUID CLI
Command-line tool for converting UUIDs to compact 22-character Base58 format.
Website: b58uuid.io
Features
- ✨ Convert UUID to B58UUID (36 chars → 22 chars)
- 🔄 Convert B58UUID back to UUID
- 🎲 Generate random B58UUIDs
- 📝 Batch processing from files
- 🔍 Validate UUID and B58UUID formats
- 🎨 Colored output
- ⚡ Fast and lightweight (~1MB binary)
- 🚀 Zero dependencies at runtime
Installation
cargo (Recommended)
Homebrew (macOS/Linux)
Scoop (Windows)
scoop bucket add b58uuid https://github.com/b58uuid/scoop-bucket
scoop install b58uuid
Shell Script (macOS/Linux)
|
PowerShell (Windows)
iwr -useb https://b58uuid.io/install.ps1 | iex
Manual Download
Download pre-compiled binaries from GitHub Releases.
Usage
Encode UUID to B58UUID
# Encode a single UUID
# Output: BWBeN28Vb7cMEx7Ym8AUzs
# Encode from stdin
|
# Encode from file
Decode B58UUID to UUID
# Decode a single B58UUID
# Output: 550e8400-e29b-41d4-a716-446655440000
# Decode from stdin
|
# Decode from file
Generate Random B58UUIDs
# Generate one B58UUID
# Generate multiple B58UUIDs
# Generate as standard UUID
Validate Format
# Validate UUID or B58UUID
Options
# Disable colored output
# Show version
# Show help
Examples
Basic Usage
# Encode
# Decode
# Generate
Batch Processing
# Create a file with UUIDs
# Encode all UUIDs
Pipeline Usage
# Generate and encode
|
# Encode multiple UUIDs
|
# Decode multiple B58UUIDs
|
Validation
# Validate UUID
# Validate B58UUID
Why B58UUID?
Compact Format
-
Standard UUID: 36 characters
550e8400-e29b-41d4-a716-446655440000 -
B58UUID: 22 characters (39% shorter)
BWBeN28Vb7cMEx7Ym8AUzs
Benefits
- ✅ Shorter URLs: Better for REST APIs and web applications
- ✅ URL-Safe: No special characters that need encoding
- ✅ Human-Readable: No confusing characters (0, O, I, l)
- ✅ Database Efficient: Smaller indexes, faster queries
- ✅ Copy-Paste Friendly: Easier to select and copy
Performance
- Binary Size: ~1MB (optimized for size)
- Startup Time: <5ms
- Memory Usage: <5MB
- Encoding Speed: ~1M ops/sec
- Decoding Speed: ~1M ops/sec
Building from Source
# Clone the repository
# Build release binary
# Install locally
# Run tests
Cross-Compilation
# Install cross
# Build for Linux
# Build for macOS
# Build for Windows
Libraries
B58UUID is available in multiple languages:
- Rust: b58uuid
- Go: b58uuid-go
- JavaScript: b58uuid
- Java: b58uuid
- Python: b58uuid
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Links
- Website: b58uuid.io
- Documentation: docs.rs/b58uuid-cli
- Repository: github.com/b58uuid/b58uuid-cli
- Issues: github.com/b58uuid/b58uuid-cli/issues
- Crates.io: crates.io/crates/b58uuid-cli
Acknowledgments
Made with ❤️ by the B58UUID community