Version: 1.0.0
A real-time Bitcoin to USD and Satoshis converter. Single static HTML file with no build step or server required. Designed for WordPress shared hosting and any static web server.
- Real-time BTC price with 30-second auto-refresh
- Convert between Bitcoin (BTC), Satoshis (sats), and US Dollars (USD)
- 24-hour price change with percentage and dollar amount
- Manual refresh button for on-demand price updates
- Market statistics: Market Cap, 24h Volume, Circulating Supply, and BTC Dominance
- Quick example buttons (1 BTC, $1,000, 100M sats)
- Works on any static web hosting (no server needed)
- Mobile responsive design
- PWA-ready manifest
The calculator fetches price data from multiple APIs with automatic failover. It stops at the first successful response to minimize API requests:
- Coinbase - Fast, reliable price data with good CORS support
- CoinGecko - Price + 24h change + market cap + volume
- Kraken - Price + 24h change + volume
- CoinCap - Price + 24h change + market cap + volume + supply
- Blockchain.info - Price only (last resort)
If direct API calls are blocked by CORS, the calculator automatically retries through public CORS proxy services (corsproxy.io, allorigins.win).
- Price: Every 30 seconds (stops at first successful API)
- Market stats: Once on page load, then every hour (all APIs queried in parallel)
- Manual refresh: Available via the refresh icon next to the 24h change
When APIs don't return certain data, the calculator uses smart fallbacks:
- Market Cap: Estimated from current price and calculated circulating supply
- Circulating Supply: Calculated from Bitcoin's block reward schedule (anchored to a known supply value, accurate for years without updates)
- 24h Change: Cached from the initial stats fetch and reused across price refreshes
- Volume: Shows the last successfully fetched value during the session
- Dominance: Only shown when live data is available (no stale fallback)
- Upload
index.htmland.htaccessto your web server - That's it. No dependencies, no build step, no Node.js required
Upload both files to a directory on your server (e.g. /bitcoin-calculator/):
your-site.com/
bitcoin-calculator/
index.html
.htaccess
The .htaccess file handles URL rewriting for clean URLs on Apache servers. If your hosting uses Nginx, you can skip that file.
The .htaccess file is configured for a folder called /bitcoin-calculator/ by default. If you place the files in a differently named folder (or at the root of your domain), open .htaccess in a text editor and follow the instructions at the top of the file to update the folder path.
- Vanilla JavaScript (no framework)
- Inline CSS (no external dependencies)
- Lucide Icons via CDN
Copyright (c) 2026 wBuild.dev (https://github.com/wbuilddev, https://sats.network) Licensed under the GNU General Public License v2.0 or later — see LICENSE file.
Built by wBuild.dev — WordPress Plugins & Web Tools. Every Plugin a W.
wBuild is independently developed with no VC funding, no ads, and no data collection. If this tool saves you time, consider supporting future development:
PayPal · Cash App · BTC: 16cj4pbkWrTmoaUUkM1XWkxGTsvnywwS8C
Every contribution helps keep wBuild tools updated and independent.