Author

Topic: BTC2FIAT.me: a lightweight Bitcoin to Fiat converter (Read 545 times)

newbie
Activity: 22
Merit: 44
Hi everyone, out of frustration I created a very simple, lightweight BTC to Fiat converter:

I kind of did the same thing couple weeks ago, while learning React and working on a fun project at https://uselessshit.co  (converter available at https://uselessshit.co/#converter) Tongue
legendary
Activity: 3668
Merit: 6382
Looking for campaign manager? Contact icopress!
I'm also not in love with the domain url (.me), but the nicer alternatives are either taken or too expensive. preev is a great catchy name and it works amazing.

You haven't look around well enough and you've messed the chance for getting preev.net
However, your code is live on preev.net (I don't know for how long); you can see here and (better) a whole discussion here.
sr. member
Activity: 860
Merit: 423
Hi everyone, out of frustration I created a very simple, lightweight BTC to Fiat converter:

https://btc2fiat.me

It's free, open source, free of ads or noise.

What do you all think?
Fantastic work. How about adding Bitcoin price on this day for last 10 years just below the current price? Pictorial representation can be something like the following on horizontal screen like desktop/laptop. For vertical screen like mobile, chart would probably be better shown in vertical format.




I'm also not in love with the domain url (.me), but the nicer alternatives are either taken or too expensive.
How about 100bit.co.in?
legendary
Activity: 2688
Merit: 3983
can you add feature like "BTC Price Image Generators" which generate a dynamic/static image of a price in BTC based on USD price.
It will be good for forums and for those who want to make a transaction, for example, click on the button to generate an image, and get a picture of the price, time, amount of bitcoin required.

It will be like a purchase receipt. You press the amount of $100 and you will get a picture of the price and time.
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
I like how fast btc2fiat.me loads and that it has no trackers.

One improvement / addition suggestion, would be a completely static version, that lets you pass a URL parameter.
It would be even more lightweight and require no JavaScript.

Let's say I go to https://btc2fiat.me/?btc=0.5, it would display a static version of the current webpage, with the amount set to 0.5BTC.
And https://btc2fiat.me/?usd=50.0 would display the exchange rate for 50USD.

My motivation for this idea is: https://plaintextsports.com/

Hey, yeah the plan is to be able to use non-JS but for calculators where you expect immediate input that becomes tricky. I still think it would be cool to have that support. In fact plaintextsports.com is using JS for its toggle light-dark mode.

For my tools, what I'm doing is using Python at the backend served using Flask & uWSGI. This lets you use all the threads on your server for serving requests. I have also implemented a memory and time ceiling for the scripts so that arbitrary user input can't crash the runtime (it's relatively easy to do). In case it does crash, I have it running inside a docker container that will auto-restart (but you could easily use something like nodaemon for this as well)

It works for relatively small loads, but if you start getting overwhelmed with requests, you can run the backend on another server and use HAProxy on a third to distribute requests between them. Just thought that this configuration might hekp you with your own tools.
newbie
Activity: 22
Merit: 257
Hi everyone, I decided to go for the regular 8 digits, now you cannot enter more digits and I fixed the bugs regarding the numbers.

If you input say 2800 USD, it will still show as "0.090 BTC", but with the bottom the 8-digit amount will show:

0.090 BTC
0.09007560 BTC

Here's more details on the tiny release:
https://github.com/handsomelatino/btc2fiat/releases/tag/v2.1

The interaction may feel a bit messy now, but I still prefer to see approximate values such as "13.2 BTC" instead of "13.212311200 BTC". Please experiment with it on your daily usage and let me know, I'm open to suggestions. The BTC/Sats Eur/Usd toggle will change behavior of these numbers quite a bit.

If I select Sats, and write 1, the conversion shows 0.0000000100 BTC.

Why do you show those 2 extra zeroes? It made me think that I could go down to millisats (lightning supports that), but the minimum is 1 sat.

Thanks, this was a bug. It should never show more than 8 precision digits for BTC now.

I like how fast btc2fiat.me loads and that it has no trackers.

One improvement / addition suggestion, would be a completely static version, that lets you pass a URL parameter.
It would be even more lightweight and require no JavaScript.

Let's say I go to https://btc2fiat.me/?btc=0.5, it would display a static version of the current webpage, with the amount set to 0.5BTC.
And https://btc2fiat.me/?usd=50.0 would display the exchange rate for 50USD.

My motivation for this idea is: https://plaintextsports.com/

Hey, yeah the plan is to be able to use non-JS but for calculators where you expect immediate input that becomes tricky. I still think it would be cool to have that support. In fact plaintextsports.com is using JS for its toggle light-dark mode.

Also, although still not free of Javascript, you can actually run queries which reduce the number of parameters you use, in fact I have a Chrome shortcut that does this:

Code:
https://btc2fiat.me/?q=%s

This lets you run queries such as:

https://btc2fiat.me/?q=0.5+btc
https://btc2fiat.me/?q=200+sats&cur=eur
https://btc2fiat.me/?q=10+usd

So in the browser, I just type "BTC" (tab) and then whatever is my search "200 usd" and it will show up the value right away. Might be a good idea to show others how it can be used but don't know what is the best way to achieve that.

Thanks!
hero member
Activity: 882
Merit: 5834
not your keys, not your coins!
But it's a nice way to quickly visualize a fractional Bitcoin quantity.

If it's something like 0.01000000 you pay attention to the first digits and think in terms of BTC(0.01₿), and if it's a small number like 0.00001000 you pay attention to the last digits, and think in terms of sats(1000 sats).
Exactly. One satoshi is such a small value today that we don't really need mBTC except maybe when talking about Lightning stuff. Even then you can easily get away talking about 0.5sat (instead of 500mSat). I expect if / when sub-satoshi amounts will be relevant for pricing out stuff, we will have moved to a mostly satoshi-based standard anyway so we'll talk about something costing 1.99 sats and having paid a LN fee of 10mSat maybe. But never will we really need to denominate something in a BTC fraction with 10 or 12 decimal places.
hero member
Activity: 1008
Merit: 960
~snip~
I think for now, Bitcoin should be standardized to 8 decimal places. When I see a Bitcoin fraction that ends with 100, I usually assume it's 100 sat.

Yeah, that would be ideal, but I don't think it's even remotely standard.

But it's a nice way to quickly visualize a fractional Bitcoin quantity.

If it's something like 0.01000000 you pay attention to the first digits and think in terms of BTC(0.01₿), and if it's a small number like 0.00001000 you pay attention to the last digits, and think in terms of sats(1000 sats).
hero member
Activity: 882
Merit: 5834
not your keys, not your coins!
How about http://preev.com/?
Two bad things about preev: no TLS and it tries to load Google trackers.


I like how fast btc2fiat.me loads and that it has no trackers.

One improvement / addition suggestion, would be a completely static version, that lets you pass a URL parameter.
It would be even more lightweight and require no JavaScript.

Let's say I go to https://btc2fiat.me/?btc=0.5, it would display a static version of the current webpage, with the amount set to 0.5BTC.
And https://btc2fiat.me/?usd=50.0 would display the exchange rate for 50USD.

My motivation for this idea is: https://plaintextsports.com/

If I select Sats, and write 1, the conversion shows 0.0000000100 BTC.

Why do you show those 2 extra zeroes? It made me think that I could go down to millisats (lightning supports that), but the minimum is 1 sat.
I think for now, Bitcoin should be standardized to 8 decimal places. When I see a Bitcoin fraction that ends with 100, I usually assume it's 100 sat.
hero member
Activity: 1008
Merit: 960
It looks great.

I have a couple of questions.

If I select Sats, and write 1, the conversion shows 0.0000000100 BTC.

Why do you show those 2 extra zeroes? It made me think that I could go down to millisats (lightning supports that), but the minimum is 1 sat.

Second, it would be great to have a few more fiats.

Great project
legendary
Activity: 3668
Merit: 6382
Looking for campaign manager? Contact icopress!
New version is out at https://btc2fiat.me (hard refresh might be required):

Great results, open source, active dev and open to people's suggestions.. what else would we want? Cheesy
Well done and keep it up!

And yes, obviously, I like the new additions Wink
newbie
Activity: 22
Merit: 257
Thanks for all the suggestions!

New version is out at https://btc2fiat.me (hard refresh might be required):

Looks like this → https://user-images.githubusercontent.com/100208905/167059806-bc491cae-bbe3-41e5-a90b-aa9a58f2dcbe.png

  • Euro/USD support
  • Refetch exchange after one minute of inactivity

 (I decided to not go for automatic refreshing since I felt the UX is better if you manually refresh):

This week's To Do: fetch the exchange on the backend and not rely on coingecko.

I'm also not in love with the domain url (.me), but the nicer alternatives are either taken or too expensive. preev is a great catchy name and it works amazing. Dark mode is a most for me (I spent a lot of time with lights dimmed and babies asleep).

I always appreciate projects with a platform that can help the community I've bookmarked some of the Bitcoin conversion platforms and I'm going to bookmark yours for reference, comparison, and recommendations. I also have one set up and it's been online for 5 years now I hope you can keep up yours and sustain it, our community needs something like this.

Congratulations on launching your converter and good luck.

These are now the converter I'm using and have included yours. (...)

Thanks, happy to see btc2fiat.me included.

It's good that you created it as open source, but I saw many similar websites already available, so you need to provide something special if you want to attract more people.
You may want to add direct github link and open source license on the bottom of the page (without going to About page).

You can easily use Coingecko directly (since you are using their API) with uBlocker Origin extension, and you won't see any ads on their page Wink
I know other useful websites that can convert Bitcoin to fiat currencies and smaller units, one of them was created by our forum member Bitmover if I remember correctly:
https://bitcoindata.science/bitcoin-units-converter.html

I added the link to Github on the footer, but it might still not be clear. Maybe just write "Open source"? Also, the main point was to make it very lightweight to load.

legendary
Activity: 2212
Merit: 7064
OP should consider adding Euro alternative (dollar is now only option) for people who are not living in United States.
There is one more similar website made by bitcointalk member blockgardener, and it's interesting that bitcoinpricecalc is showing historic bitcoin prices in fiat currencies.
Data source is different, I don't think this is open source project, and it could be interesting to see two if two members could work together in some kind of cooperation.
https://bitcoinpricecalc.com/
legendary
Activity: 3668
Merit: 6382
Looking for campaign manager? Contact icopress!
What do you all think?

I do like it, although for now preev still wins (sorry) because at least it has more fiat currencies. Yes, I know that you'll add those, it'll be a great step forward.

Although I use it rarely, I'd love to see something like https://thecryptocoinconverter.com/ which actually works (I've just looked up there a conversion from an altcoin to my local currency and it was awfully off), maybe you consider it as a second project or an extension.

But back to this actual project:
* it could be useful to update price from time to time automatically without the need for refresh
* it could be useful to put the price in page title

However, great job!
legendary
Activity: 1624
Merit: 2594
Top Crypto Casino
Congratulations on the launch of your project. It seems like a pretty good bitcoin calculator. I know that there are others out there, but this is a nice simple one. Hopefully your site will be the go to one.
copper member
Activity: 2114
Merit: 1814
฿itcoin for all, All for ฿itcoin.
Seems like a very good calculator for a Bitcoin maximalist  Smiley
Bookmarked.

Before I started using bitcoindata.science, bitsusd.com was my favorite Bitcoin to fiat calculator.

I don't if it's a bad idea, but you could add another option for more top altcoins to USD calculator right below the Bitcoin calculator.

Also, the different units of Bitcoin would be good to add, as already suggested.
legendary
Activity: 3416
Merit: 1225
I always appreciate projects with a platform that can help the community I've bookmarked some of the Bitcoin conversion platforms and I'm going to bookmark yours for reference, comparison, and recommendations. I also have one set up and it's been online for 5 years now I hope you can keep up yours and sustain it, our community needs something like this.

Congratulations on launching your converter and good luck.

These are now the converter I'm using and have included yours.
http://preev.com/
https://btc2fiat.me/
https://thecryptocoinconverter.com/
https://bitcoindata.science/bitcoin-units-converter.html
legendary
Activity: 2352
Merit: 6089
bitcoindata.science
What do you all think?
It's good that you created it as open source, but I saw many similar websites already available, so you need to provide something special if you want to attract more people.
You may want to add direct github link and open source license on the bottom of the page (without going to About page).

Even though it's a very simple idea I was quite shocked to find how hard it is to find a converter that is free of distracting ads and random information which I don't care much about (such as the price of other assets).
You can easily use Coingecko directly (since you are using their API) with uBlocker Origin extension, and you won't see any ads on their page Wink

I agree, it is easy to find tools like that. Even on coinmarketcap.com there is a nice converter

I know other useful websites that can convert Bitcoin to fiat currencies and smaller units, one of them was created by our forum member Bitmover if I remember correctly:
https://bitcoindata.science/bitcoin-units-converter.html


Thank for mentioning me.
This is a tool that allows to converte in basically any fiat currency. Additionally,  you can also use all other bitcoin units, such as mbtc, finney, Satoshi and many others which are not very known
legendary
Activity: 2212
Merit: 7064
What do you all think?
It's good that you created it as open source, but I saw many similar websites already available, so you need to provide something special if you want to attract more people.
You may want to add direct github link and open source license on the bottom of the page (without going to About page).

Even though it's a very simple idea I was quite shocked to find how hard it is to find a converter that is free of distracting ads and random information which I don't care much about (such as the price of other assets).
You can easily use Coingecko directly (since you are using their API) with uBlocker Origin extension, and you won't see any ads on their page Wink
I know other useful websites that can convert Bitcoin to fiat currencies and smaller units, one of them was created by our forum member Bitmover if I remember correctly:
https://bitcoindata.science/bitcoin-units-converter.html
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
What do you all think?
This part takes a few seconds (on Tor):
Code:
Fetching exchange rate from CoinGecko...
If you could cache that (and update every few seconds?), it could run smoother.
copper member
Activity: 2940
Merit: 1280
https://linktr.ee/crwthopia
I have been using preev ever since for quick conversions. And with the time being I've used it, I think it's down twice, IIRC. I like your site and its simpleness, and the only thing that I would probably have a hard time remembering is the URL itself. btc2fiat is easy to remember but the .me doesn't fit for me. I don't know if it's the same with others, though.

Overall I like it, and I have already bookmarked it.
newbie
Activity: 22
Merit: 257
How about http://preev.com/?

Thanks! Much appreciated. Preev looks nice, I'll take some ideas from it. Essentially I noticed many converts don't have Satoshis as a unit, which are used a lot recently (in fact I was used to seeing mBTC in my times). And as you mentioned, the dark mode. I read a lot while my toddler sleeps in my lap so dark mode is a must!

For now you can say it's bitcoin to USD  Tongue.
Can the user choose the price according to the platform? View the average price of Bitcoin in addition to the prices on each platform.
I hope that you will add some charts and some data such as tx fees, mempool and others.
Also, if you add ready-made prices with a single click (10$, 100$, 1000$,) it will be good.

Minimalistic Tx fees and mempool sounds like a great idea, maybe for a separate expansion of this project. Thanks! I wanted it to be a "war of the giants" between the biggest contender in fiat which is USD, but I wasn't aware of how big the Euro or Yuan are. So I plan on adding currencies.

When you mention platforms you mean different exchanges? Is it common for users to want to check multiple sources? (My own experience is that the number fluctuates so much that I always give or take some percentage when transacting with others).
legendary
Activity: 2688
Merit: 3983
(Note: euro and other fiat support coming soon)
For now you can say it's bitcoin to USD  Tongue.
Can the user choose the price according to the platform? View the average price of Bitcoin in addition to the prices on each platform.
I hope that you will add some charts and some data such as tx fees, mempool and others.
Also, if you add ready-made prices with a single click (10$, 100$, 1000$,) it will be good.
newbie
Activity: 22
Merit: 257
Hi everyone, out of frustration I created a very simple, lightweight BTC to Fiat converter:

https://btc2fiat.me

It's free, open source, free of ads or noise.

What do you all think?

Even though it's a very simple idea I was quite shocked to find how hard it is to find a converter that is free of distracting ads and random information which I don't care much about (such as the price of other assets).

I just went down the Bitcoin rabbit hole so feedback is welcome here or on Github. Cheers!

(Note: euro and other fiat support coming soon)
Jump to: