This tool converts a numeric euro or peso amount into its correct written Spanish form, the way it must appear on cheques, invoices, and notarised contracts. Spanish number spelling has several irregularities that simple digit-by-digit converters get wrong, so the algorithm here encodes the real rules.
How it works
The integer part is split into groups of three digits and each group is read
with the Spanish hundreds, tens, and units tables. Numbers from 16 to 29 are
single words (dieciséis, veintiuno), and from 31 upward the tens and units
are joined with y (treinta y uno). Hundreds include the irregular forms
quinientos, setecientos, and novecientos, and exactly 100 is cien while
101–199 use ciento.
123,45 -> ciento veintitrés euros con cuarenta y cinco céntimos
1.000 -> mil euros
2.000.000 -> dos millones de... (mil/millón scale words applied)
The trailing uno is apocopated to un before the masculine currency noun, so
the output is un euro, never uno euro, and veintiún euros rather than
veintiuno euros. The cents are read the same way and labelled céntimos for
the euro or centavos for the peso.
Tips and notes
Only the first letter of the line is capitalised, matching standard legal
phrasing such as Mil doscientos treinta euros. If you omit the decimals the
con ... clause is dropped entirely. The tool accepts both 1.234,56 (Spanish
style) and 1234.56 (international style) and figures out which separator is the
decimal point automatically, so you can paste figures from any source.