Bitcoin exchange calculator for ethical exchangers
Fast, simple, and accurate BTC/fiat calculator with real-time rates and multi-currency support.
π Live Site: https://vekslak.dvadsatjeden.org
- π± Real-time rates - Live BTC prices from Binance API
- π Multi-currency - EUR, USD, CZK, PLN, HUF, PYG support
- π Buy/Sell modes - Calculate both directions with custom fees
- β‘ BTC/SATS toggle - Switch between Bitcoin and Satoshi units
- π’ Custom number format - International (1,000.50) or European (1 000,50)
- π Multi-language - English, Slovak, Czech, Polish, Hungarian, German, Spanish
- πΈ Screenshot sharing - Export calculations as images
- πΎ LocalStorage - Remembers your preferences
Visit https://vekslak.dvadsatjeden.org
Node.js 18+
npm or yarn# Clone repository
git clone https://github.com/yourusername/vekslak.git
cd vekslak
# Install dependencies
npm install
# Start development server
npm run dev- Select mode: BUY or SELL
- Enter amount: EUR/USD/CZK/PLN/HUF/PYG or BTC
- Set fee: Your commission percentage
- View result: Instant calculation with BTC amount
- Currency: Choose base currency (EUR, USD, CZK, PLN, HUF, PYG)
- Language: Select UI language
- Number Format: International or European number formatting
- Click copy icon to copy BTC amount to clipboard
- Click screenshot to capture and share calculation
- React 18.3 - UI framework
- Vite 5.4 - Build tool
- Tailwind CSS 3.4 - Styling
- Lucide React - Icons
- html2canvas - Screenshot functionality
- Binance API - Real-time BTC/USD prices
- ExchangeRate API - Currency conversion rates
// Fetches live BTC price in multiple currencies
- BTC/USD from Binance
- Auto-converts to EUR, USD, CZK, PLN, HUF, PYG
- Updates on demandInternational: 95,842 β¬ (comma thousands, dot decimal)
European: 95 842 β¬ (space thousands, comma decimal)
Client pays: 500 EUR
Fee: 2%
βββββββββββββββββββββ
Rate with fee: 97,758.84 β¬
Send to client: 0.00671611 BTC
Your fee: 9.80 β¬
Client sells: 0.01 BTC
Fee: 2%
βββββββββββββββββββββ
Rate with fee: 93,825.16 β¬
Client receives: 938.25 β¬
Your fee: 19.13 β¬
- π¬π§ English
- πΈπ° SlovenΔina
- π¨πΏ ΔeΕ‘tina
- π΅π± Polski
- ππΊ Magyar
- π©πͺ Deutsch
- πͺπΈ EspaΓ±ol
btc-currency // "EUR" | "USD" | "CZK" | "PLN" | "HUF" | "PYG"
btc-language // "en" | "sk" | "cs" | "pl" | "hu" | "de" | "es"
btc-number-format // "international" | "european"- No data collection - Everything runs client-side
- No tracking - No analytics or cookies
- No backend - Pure frontend application
- LocalStorage only - Settings saved locally
npm run build
# Output: dist/Vercel:
vercelNetlify:
netlify deploy --prodGitHub Pages:
npm run build
# Upload dist/ folderContributions welcome! Please:
- Fork the repository
- Create feature branch (
git checkout -b feature/amazing) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing) - Open Pull Request
MIT License
SiriusBig
- Binance API for real-time BTC prices
- ExchangeRate API for currency conversion
- Dvadsatjeden Bitcoin community for inspiration
- All ethical exchangers using this tool
If you find this project useful, please consider:
- β Starring the repository
- π Reporting bugs
- π‘ Suggesting new features
- π Contributing code
- β‘ Donating to sirius@dvadsatjeden.org
- Added Dark Mode theme toggle
- Added Spanish and German translations
- Added USD and PYG currency options
- SettingsModal redesign β language is now a select dropdown
- Improved BTC price timestamp formatting (European 24h format)
- Created reusable UI components: CalculationPreview, CopyToast, CurrentPriceCard...
- Refactored BTC buying/selling logic into a standalone calculateTrade() function
- Added complete test suite for BUY / SELL modes (BTC input + FIAT input)
- Made the app installable - Added manifest.json
- SELL FIAT/BTC Toggle: Users can now input either BTC amount or desired fiat amount in SELL mode
- Two SELL calculation modes:
- Dynamic
<html lang="">attribute based on selected language - Social media meta tags (Open Graph, Twitter Card)
- Auto-clear amount field when switching between modes
- π Added ES language
- β¨ updated readme
- β¨ Added custom number format selection
- β¨ Added BTC/SATS toggle
- β¨ Added screenshot functionality
- π Added 5 language support
- π° Added 4 currency support
- π¨ Improved UI/UX
- πΎ Added LocalStorage persistence
- Added multi-currency support
- Added language selection
- Improved mobile responsiveness
- Initial release
- Basic BTC calculator
- EUR support only
Made with β€οΈ for ethical exchangers and βΏ