<p>However it is possible to generate a bitcoin QR code with a given value in USD, but it is no use since high transaction fees and highly volatile nature of bitcoin. Still, you can use third party services like CoinGate which provides you a real time convertion of USD to almost all major crypto currencies. But CoinGate will show their own BTC address to receive and then they transfer it to your BTC address, so beware! Good luck!</p>

CC BY-SA 3.0
2017-11-28T06:23:17.887Z
2017-11-28T06:23:17.887Z
Hashim Taylor
<p>You can't include the USD amount, but you certainly can include the btc amount in the QR code. The QR code essentially embeds a text like this:</p>

<pre><code>bitcoin:1ArmoryXcfq7TnCSuZa9fQjRYwJ4bkRKfv?amount=0.005
</code></pre>

<p>Note the amount here is the amount in BTC. You can generate a QR code for that text using <a href="https://gobitcoin.io/tools/qrcode/" rel="noreferrer">gobitcoin.io</a>. If you just want to insert an image, you can use googleapi.com to generate it. For example, a url like this:</p>

<p><a href="https://chart.googleapis.com/chart?chs=250x250&amp;cht=qr&amp;chl=bitcoin:1ArmoryXcfq7TnCSuZa9fQjRYwJ4bkRKfv?&amp;amount=0.005" rel="noreferrer">https://chart.googleapis.com/chart?chs=250x250&amp;cht=qr&amp;chl=bitcoin:1ArmoryXcfq7TnCSuZa9fQjRYwJ4bkRKfv?&amp;amount=0.005</a></p>

<p>will generate a QR code like this:</p>

<p><a href="https://i.sstatic.net/p55iH.png" rel="noreferrer"><img src="https://i.sstatic.net/p55iH.png" alt="enter image description here"></a></p>

CC BY-SA 3.0
2016-06-01T17:03:22.657Z
how do you put in the USD amount into the qr code? I dont care about the usd/btc fluctuations.
Patoshi パトシ
CC BY-SA 3.0
2016-06-01T17:27:48.247Z
You can't put a USD amount as that's not part of the bitcoin QR code spec (BIP0021: https://github.com/bitcoin/bips/blob/master/bip-0021.mediawiki)
Jimmy Song
CC BY-SA 3.0
2016-06-02T01:20:28.320Z
You could create a dynamic QR code based on the current USD value. Something like this https://jsfiddle.net/74saant8/
m1xolyd1an
CC BY-SA 4.0
2018-05-24T12:32:33.387Z
There's an error in your google chart example, it should be bitcoin:1ArmoryXcfq7TnCSuZa9fQjRYwJ4bkRKfv?amount=0.005 (without the ampersand in this case)
ethmz
CC BY-SA 3.0
2016-06-01T16:03:05.843Z
2016-06-01T16:03:05.843Z
Jimmy Song
<p>Check out <a href="https://github.com/shesek/bitcoinuri" rel="nofollow noreferrer">https://github.com/shesek/bitcoinuri</a>. Make sure to read the warnings.</p>

CC BY-SA 3.0
2017-01-17T09:11:24.523Z
2017-01-17T09:11:24.523Z
shesek
<p>Due to how much the USD/BTC conversion rate can fluctuate, even within a small window of time, I don't think this is a good idea.</p>

<p>The problem is that you are now listing two separate prices in one QR code.  Yes, they were the same at the time of generation, but that won't last.  When payment is received, which price is the real one?  The one in bitcoin, or the one in dollars?</p>

<p>If you are receiving payment in bitcoin, then it's best you simply list your price in bitcoin.  It is usually the responsibility of wallet software to show the user any conversion to USD, and that depends on which exchange they are using as their oracle.  The user may not have access to the same exchange as you, so bitcoin may be more or less expensive to them in USD.  It's best to leave that conversion rate configuration up to your users, within their own wallet software.</p>

CC BY-SA 3.0
2016-06-01T17:02:57.073Z
ok then how do I embed a USD amount into the qr then? I don't mind the fluctuations
Patoshi パトシ
CC BY-SA 3.0
2016-06-01T17:14:18.687Z
Because it's a bad idea, a standard was never developed for embedding fiat prices.  You could make one up, but that doesn't mean that wallets will know anything about it.  What sort of reader do you expect to display this dollar amount?  No bitcoin wallet will display your embedded dollar amount, and some may even be unable to read the QR code because of it.  Trust me, this is a bad idea.
Jestin
CC BY-SA 3.0
2016-06-01T16:05:43.777Z
2016-06-01T16:12:36.577Z
2016-06-01T16:12:36.577Z
Jestin
<p>You can do it with javascript and using google's QR code URL. </p>

<p>First get the price from somewhere like bitcoinaverage.com<br>
<a href="https://api.bitcoinaverage.com/ticker/global/USD/" rel="nofollow">https://api.bitcoinaverage.com/ticker/global/USD/</a>    </p>

<p>Then divide the USD amount into the BTC price, restrict to 8 decimal places and stick it in the QR code URL. </p>

<p>Here I made a fiddle, just change <code>usdValue</code> variable to whatever you want. <a href="https://jsfiddle.net/74saant8/" rel="nofollow">https://jsfiddle.net/74saant8/</a></p>

CC BY-SA 3.0
2016-06-02T01:16:39.097Z
2016-06-02T01:16:39.097Z
m1xolyd1an
<p>You can make <a href="https://bitcoinqrcodegenerator.win" rel="nofollow noreferrer">bitcoin qr code</a> in one of a lot of mobile application. For bitcoin the scheme is like "bitcoin:address". You can also use website with generator to do it. Some websites eg. <a href="https://bitcoinqrcodegenerator.win" rel="nofollow noreferrer">https://bitcoinqrcodegenerator.win</a> add a nice bitcoin logo to the qr code to know that the code belongs to bitcoin. </p>

CC BY-SA 4.0
2018-07-11T01:08:15.020Z
2018-07-11T01:08:15.020Z
isak89
<p>I'm creating a Bitcoin QR link with my website, but I want to be able to just link to a page that generates the QR code with the current USD price equivalent of BTC in the QR. I tried blockchain.info, but it only displays the QR code and I can't embed a price into it. How can this be done? I'm trying to use it on checkout where I can pass in a BTC address + USD price to the QR code generator and the user can just pay the exact amount needed without having to lookup how much to pay. </p>

<p>I know bitpay does this, but they also log every transaction to the government. So I rather just use a service that doesn't log anything.</p>

CC BY-SA 3.0
2016-06-01T16:12:54.827Z
If you say bitpay does it, just scan one or their QR codes with your phone (with a qr code scanning app) and look at the URL it decodes to. I'm guessing the answers below are correct though and it's not possible.
Jannes
<blockchain.info><exchange-rate><qrcode>
Generating a Bitcoin Address QR code with current USD price embedded?
Patoshi パトシ
# Generating a Bitcoin Address QR code with current USD price embedded?

(Asked by: username_0 on 2016-06-01)

I'm creating a Bitcoin QR link with my website, but I want to be able to just link to a page that generates the QR code with the current USD price equivalent of BTC in the QR. I tried blockchain.info, but it only displays the QR code and I can't embed a price into it. How can this be done? I'm trying to use it on checkout where I can pass in a BTC address + USD price to the QR code generator and the user can just pay the exact amount needed without having to lookup how much to pay.

I know bitpay does this, but they also log every transaction to the government. So I rather just use a service that doesn't log anything.

**Tags:** blockchain.info, exchange-rate, qrcode

> **Comments:**
> **username_1**: If you say bitpay does it, just scan one or their QR codes with your phone (with a qr code scanning app) and look at the URL it decodes to. I'm guessing the answers below are correct though and it's not possible.  

---

## 6 answers

### Answer by username_2 on 2017-11-28. Score: 2 | Accepted answer

However it is possible to generate a bitcoin QR code with a given value in USD, but it is no use since high transaction fees and highly volatile nature of bitcoin. Still, you can use third party services like CoinGate which provides you a real time convertion of USD to almost all major crypto currencies. But CoinGate will show their own BTC address to receive and then they transfer it to your BTC address, so beware! Good luck!


---

### Answer by username_3 on 2016-06-01. Score: 9

You can't include the USD amount, but you certainly can include the btc amount in the QR code. The QR code essentially embeds a text like this:

```
bitcoin:1ArmoryXcfq7TnCSuZa9fQjRYwJ4bkRKfv?amount=0.005

```

Note the amount here is the amount in BTC. You can generate a QR code for that text using [gobitcoin.io](https://gobitcoin.io/tools/qrcode/). If you just want to insert an image, you can use googleapi.com to generate it. For example, a url like this:

<https://chart.googleapis.com/chart?chs=250x250&cht=qr&chl=bitcoin:1ArmoryXcfq7TnCSuZa9fQjRYwJ4bkRKfv?&amount=0.005>

will generate a QR code like this:

[![enter image description here](https://i.sstatic.net/p55iH.png)](https://i.sstatic.net/p55iH.png)

> **Comments:**
> **username_0**: how do you put in the USD amount into the qr code? I dont care about the usd/btc fluctuations.  
> **username_3**: You can't put a USD amount as that's not part of the bitcoin QR code spec (BIP0021: https://github.com/bitcoin/bips/blob/master/bip-0021.mediawiki)  
> **username_4**: You could create a dynamic QR code based on the current USD value. Something like this https://jsfiddle.net/74saant8/  
> **username_5**: There's an error in your google chart example, it should be bitcoin:1ArmoryXcfq7TnCSuZa9fQjRYwJ4bkRKfv?amount=0.005 (without the ampersand in this case)  

---

### Answer by username_6 on 2017-01-17. Score: 1

Check out <https://github.com/username_6/bitcoinuri>. Make sure to read the warnings.


---

### Answer by username_7 on 2016-06-01. Score: 0

Due to how much the USD/BTC conversion rate can fluctuate, even within a small window of time, I don't think this is a good idea.

The problem is that you are now listing two separate prices in one QR code. Yes, they were the same at the time of generation, but that won't last. When payment is received, which price is the real one? The one in bitcoin, or the one in dollars?

If you are receiving payment in bitcoin, then it's best you simply list your price in bitcoin. It is usually the responsibility of wallet software to show the user any conversion to USD, and that depends on which exchange they are using as their oracle. The user may not have access to the same exchange as you, so bitcoin may be more or less expensive to them in USD. It's best to leave that conversion rate configuration up to your users, within their own wallet software.

> **Comments:**
> **username_0**: ok then how do I embed a USD amount into the qr then? I don't mind the fluctuations  
> **username_7**: Because it's a bad idea, a standard was never developed for embedding fiat prices.  You could make one up, but that doesn't mean that wallets will know anything about it.  What sort of reader do you expect to display this dollar amount?  No bitcoin wallet will display your embedded dollar amount, and some may even be unable to read the QR code because of it.  Trust me, this is a bad idea.  

---

### Answer by username_4 on 2016-06-02. Score: 0

You can do it with javascript and using google's QR code URL.

First get the price from somewhere like bitcoinaverage.com  
<https://api.bitcoinaverage.com/ticker/global/USD/>

Then divide the USD amount into the BTC price, restrict to 8 decimal places and stick it in the QR code URL.

Here I made a fiddle, just change `usdValue` variable to whatever you want. <https://jsfiddle.net/74saant8/>


---

### Answer by username_8 on 2018-07-11. Score: 0

You can make [bitcoin qr code](https://bitcoinqrcodegenerator.win) in one of a lot of mobile application. For bitcoin the scheme is like "bitcoin:address". You can also use website with generator to do it. Some websites eg. <https://bitcoinqrcodegenerator.win> add a nice bitcoin logo to the qr code to know that the code belongs to bitcoin.


---

