# How to format a number input as Currency in USD

**URL:** https://community.weweb.io/t/how-to-format-a-number-input-as-currency-in-usd/1875
**Category:** How do I?
**Tags:** design
**Created:** [February 18, 2023, 10:34pm UTC](https://community.weweb.io/t/how-to-format-a-number-input-as-currency-in-usd/1875 "2023-02-18T22:34:56Z")
**Posts on this page:** 4
**Page:** 2

<div class="post-metadata">

### Author: ![ZUH852](https://avatars.discourse-cdn.com/v4/letter/z/4da419/32.png) [@ZUH852](https://community.weweb.io/u/ZUH852)
#### Post date: [November 18, 2024, 3:30pm UTC](https://community.weweb.io/t/how-to-format-a-number-input-as-currency-in-usd/1875/22 "2024-11-18T15:30:53Z")

</div>

Hi @Joyce @flo I didn’t find the amount field in the inputs. I have a use case where I need the currency field where user enter the amount etc. Kindly guide me how I can do this. Thank you very much!

---

<div class="post-metadata">

### Author: ![guisalomao](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/guisalomao/32/10807_2.png) [@guisalomao](https://community.weweb.io/u/guisalomao)
#### Post date: [December 5, 2024, 10:07pm UTC](https://community.weweb.io/t/how-to-format-a-number-input-as-currency-in-usd/1875/23 "2024-12-05T22:07:22Z")

</div>

Did you find the amount element? I’m having the same issue.  
@Joyce @flo

---

<div class="post-metadata">

### Author: ![benc](https://avatars.discourse-cdn.com/v4/letter/b/82dd89/32.png) [@benc](https://community.weweb.io/u/benc)
#### Post date: [December 6, 2024, 1:51am UTC](https://community.weweb.io/t/how-to-format-a-number-input-as-currency-in-usd/1875/24 "2024-12-06T01:51:39Z")

</div>

Have you tried using a masked field?

---

<div class="post-metadata">

### Author: ![guisalomao](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/guisalomao/32/10807_2.png) [@guisalomao](https://community.weweb.io/u/guisalomao)
#### Post date: [December 9, 2024, 2:46pm UTC](https://community.weweb.io/t/how-to-format-a-number-input-as-currency-in-usd/1875/25 "2024-12-09T14:46:15Z")

</div>

Yes. It’s not enough because it is not dynamic.

- 5000 becomes $5,000
- 10000 becomes $1,0000

or the inverse:

- 10000 becomes $10,000
- 5000 becomes $50,00
- 500 becomes $50,0

[Previous page](https://community.weweb.io/t/how-to-format-a-number-input-as-currency-in-usd/1875.md?page=1)
