The forint is the currency of Hungary, an export-oriented EU economy with a large automotive and electronics sector, and it is one of the more volatile currencies in Central Europe. Its decimals are a classic source of bugs: ISO says two, everyday life says none. The fxapi HUF exchange rate API returns forint rates against 190+ currencies at full precision so you can apply whichever rounding rule your use case needs.
HUF facts for developers
- Where it’s used: Hungary.
- Symbol and formatting:
Ftafter the amount, a space as thousands separator and a comma as decimal separator:12 345 Ftor12 345,67 Ft. - Minor unit: 2 decimals per ISO 4217 (fillér), but no fillér coins circulate. The 1- and 2-forint coins were withdrawn in 2008, so cash totals are rounded to the nearest 5 forints.
- Central bank: Magyar Nemzeti Bank (MNB), the central bank of Hungary.
- Regime: free float. From 2001 the forint traded within a ±15% band around a central parity against the euro; the MNB and the government abandoned the band in February 2008 (the sample date on this page is 26 February 2008). Hungary joined the EU in 2004 but has not adopted the euro.
- Events in the historical data: the forint weakened sharply during the 2008–2009 crisis and again in 2022, when Hungary faced high inflation.
Get HUF rates with the fxapi API
/v1/convert (Basic plan and up) returns converted amounts directly. This Go program converts a euro price to forints and applies both display rounding (whole forints) and cash rounding (nearest 5 Ft):
package main
import (
"encoding/json"
"fmt"
"log"
"math"
"net/http"
"net/url"
"os"
)
func main() {
q := url.Values{}
q.Set("base_currency", "EUR")
q.Set("currencies", "HUF")
q.Set("value", "249.90")
req, err := http.NewRequest("GET", "https://api.fxapi.com/v1/convert?"+q.Encode(), nil)
if err != nil {
log.Fatal(err)
}
req.Header.Set("apikey", os.Getenv("FXAPI_KEY"))
resp, err := http.DefaultClient.Do(req)
if err != nil {
log.Fatal(err)
}
defer resp.Body.Close()
if resp.StatusCode != http.StatusOK {
log.Fatalf("fxapi returned %s", resp.Status)
}
var out struct {
Data map[string]struct {
Value float64 `json:"value"`
} `json:"data"`
}
if err := json.NewDecoder(resp.Body).Decode(&out); err != nil {
log.Fatal(err)
}
huf := out.Data["HUF"].Value
fmt.Printf("€249.90 = %.2f HUF (exact)\n", huf)
fmt.Printf("display: %.0f Ft\n", math.Round(huf))
fmt.Printf("cash: %.0f Ft\n", math.Round(huf/5)*5)
}
Read more in currency rounding and precision, the currency converter API and the Go guide. Regional peers: Polish zloty and Czech koruna.
Things to watch
- ISO vs practice. Payment providers differ – some require HUF amounts with 2 decimals, others accept or expect whole forints. Check your provider’s documentation.
- Cash rounding to 5 Ft applies only to cash payments.
- Volatility. The forint can move several percent in a short period; refresh cached rates more often than for pegged currencies.
Popular HUF pairs
Request any of these pairs – or any other combination of the 190+ supported currencies – with base_currency=HUF:
| Pair | Latest rate request |
|---|---|
| HUF/EUR | /v1/latest?base_currency=HUF¤cies=EUR |
| HUF/USD | /v1/latest?base_currency=HUF¤cies=USD |
| HUF/CHF | /v1/latest?base_currency=HUF¤cies=CHF |
| HUF/PLN | /v1/latest?base_currency=HUF¤cies=PLN |
| HUF/CZK | /v1/latest?base_currency=HUF¤cies=CZK |
| HUF/GBP | /v1/latest?base_currency=HUF¤cies=GBP |
Monthly averages and fluctuation for HUF
# Monthly average HUF rates for 2025 (IAS 21 / ASC 830)
curl -G "https://api.fxapi.com/v1/average" \
-d date_from=2025-01-01 -d date_to=2025-12-31 -d period=month \
-d base_currency=HUF -d currencies=EUR,USD,CHF \
-H "apikey: $FXAPI_KEY"
# How did HUF move over the last year?
curl -G "https://api.fxapi.com/v1/fluctuation" \
-d date_from=2025-10-01 -d date_to=2026-10-01 \
-d base_currency=HUF -d currencies=EUR,USD,CHF \
-H "apikey: $FXAPI_KEY"See the historical exchange rates API, average rates API and documentation for every parameter.
HUF is one of 190+ currencies in fxapi, the foreign exchange rates API for developers – live rates, daily history since 1999 and monthly averages with one API key.
Frequently asked questions
How do I get the EUR to HUF exchange rate via API?
/v1/latest?base_currency=EUR¤cies=HUF with your key in the apikey header. The value is forints per 1 euro.How many decimals does the forint have?
Does fxapi have forint rates before 1999?
How do I convert euros to forints in one call?
/v1/convert?base_currency=EUR¤cies=HUF&value=250. The convert endpoint is available on the Basic plan and above; on Free, multiply the /v1/latest rate yourself.