Spell a number in Spanish
1234 in Spanish is mil doscientos treinta y cuatro, written the formal way you would put on a cheque or a contract. Accents, cien versus ciento and un millón versus millones come out right every time. Free in your browser.
- Free
- Runs in your browser
- No sign-up
- Your data stays on your device
Run — free
Worked example
- Integer
- 1,234
- Words
- mil doscientos treinta y cuatro
- Language
- es
Spelling a number in Spanish turns a bare integer into the formal phrase you would write on a cheque, a legal clause, or a classroom answer key. Enter one thousand two hundred thirty-four and the tool returns mil doscientos treinta y cuatro, following everyday Spanish conventions for units, teens, tens with y, hundreds including cien versus ciento, and long-scale groups such as mil, un millón, mil millones, and un billón. Students check homework on place value and number names; translators and localization teams verify Spanish copy for invoices and UI strings; finance and admin workflows need the same wording every time rather than a free-form paraphrase. Non-numeric input, fractions, NaN, and Infinity fail with a clear validation error instead of a silent wrong phrase.
How Spanish number spelling works
Start with a finite integer written in ordinary digits. Zero is simply cero. For a negative value, spell the absolute value and prefix the word menos so the sign stays explicit in plain language.
Positive magnitudes are broken into groups of three digits from the right and each group is named with formal Spanish tables: units from uno through nueve, special teens from diez through diecinueve, the fused twenties from veinte through veintinueve with correct accents on veintidós, veintitrés, and veintiséis, then tens from treinta through noventa joined to a unit with the conjunction y as in treinta y cuatro. Hundreds use cien when the group is exactly one hundred, and ciento, doscientos, trescientos, and the rest when more digits follow inside that group.
Thousands use mil alone for one thousand and N mil with apocope of uno to un or veintiún before mil when the thousands coefficient ends in one. Millions use un millón in the singular and N millones in the plural; one billion on the short scale is mil millones in Spanish long scale, and one trillion short-scale becomes un billón. Values must stay inside JavaScript’s safe integer range so every digit remains exact when the result is serialized.
Fractional input such as three point five is rejected because Spanish decimal phrases would require a separate contract with coma and fractional digit words; this capability is deliberately limited to whole numbers so the search intent to spell a number in Spanish for integers stays clear and trustworthy.
Where Spanish number-to-words tools show up in real work
Secondary-school Spanish and bilingual math courses assign number-name drills and place-value charts; a trusted oracle that returns the formal phrase speeds answer keys and classroom demos without hand-written tables. Accounting, notaries, and administrative offices still write amounts in words on cheques, contracts, and official forms where mil doscientos treinta y cuatro is required beside the digits for anti-tamper clarity. Localization engineers building Spanish UI copy, invoice templates, and accessibility readouts need deterministic wording that matches style guides rather than a large language model that might paraphrase.
Coding interviews and online judges occasionally ask candidates to implement number-to-words for a target language; tutors compare student output against known-good strings for zero, teens, y-tens, cien versus ciento, and millón versus millones. Treat English number spelling, Spanish currency legalese with centavos, and locale-aware digit formatting with thousand separators as separate search intents with their own landings rather than stretching this whole-number Spanish speller past its honest scope.
What you can do with it
Homework and Spanish number-name drills
Check textbook answers for spelling whole numbers in formal Spanish, including teens, y-tens, cien versus ciento, and millions.
Cheques, contracts, and admin forms
Produce the words line next to digit amounts so legal and administrative documents stay consistent and hard to alter.
FAQ
What does this Spanish number speller return for 1234?
mil doscientos treinta y cuatro. That is the formal everyday Spanish spelling with hundreds, the y between tens and units, and mil for one thousand.
Does it support millions and billions?
Yes. It uses Spanish long scale: un millón for 1,000,000, mil millones for 1,000,000,000, and un billón for 1,000,000,000,000, with plural forms when the coefficient is greater than one.
What happens with non-numeric input?
Fractions, bare text, NaN, Infinity, and empty values are rejected and are not charged.
Are negative numbers supported?
Yes. Negatives are spelled as menos followed by the absolute value in words, for example menos cinco for −5.
What does it cost?
The browser tool is free and runs locally.
Related tools
For developers — API access
Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.
API endpoint
Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.
Call it from your stack
curl -X POST https://api.kit.forhosting.com/fmt/number-to-words-es \
-H "Authorization: Bearer $KIT_KEY" \
-H "Content-Type: application/json" \
-d '{"n":1234}'const res = await fetch("https://api.kit.forhosting.com/fmt/number-to-words-es", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.KIT_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"n": 1234
})
});
const { task_id } = await res.json();import os, requests
res = requests.post(
"https://api.kit.forhosting.com/fmt/number-to-words-es",
headers={"Authorization": f"Bearer {os.environ['KIT_KEY']}"},
json={
"n": 1234
},
)
task_id = res.json()["task_id"]<?php
$res = file_get_contents("https://api.kit.forhosting.com/fmt/number-to-words-es", false, stream_context_create([
"http" => [
"method" => "POST",
"header" => "Authorization: Bearer " . getenv("KIT_KEY") . "\r\nContent-Type: application/json",
"content" => '{"n":1234}',
],
]));
$task = json_decode($res, true);body := bytes.NewBufferString(`{"n":1234}`)
req, _ := http.NewRequest("POST", "https://api.kit.forhosting.com/fmt/number-to-words-es", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("KIT_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)Example request
{
"n": 1234
}Example response
{
"task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
"type": "fmt.number_to_words_es",
"status": "queued",
"_links": {
"result": "/tasks/tsk_…/result"
}
}The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.
Pricing
Published price — no tokens, no invented credits. A failed task is never charged.
Limits
max_abs | 9007199254740991 |
Errors
| HTTP | Code | Meaning |
|---|---|---|
401 | unauthorized | Missing or invalid API key. |
402 | insufficient_balance | Your balance doesn't cover the task price. |
404 | unknown_type | That task type doesn't exist. |
429 | rate_limited | Too many requests. Use the webhook instead of polling. |
Technical notes
Pricing for successful API calls is the published base of $0.002 per item.
How Spanish number spelling works
The algorithm is pure table lookup and integer divmod: no random seeds, no wall-clock timestamps, no network calls, and no model drift, so identical inputs always produce identical JSON.
What you send and what you get back
Send a single required field n holding a whole number to spell. Absolute values larger than nine quadrillion and a bit—Number.MAX_SAFE_INTEGER—are rejected so the spelling cannot silently lose low-order digits. Classic checks include n equals zero mapping to cero, n equals one thousand two hundred thirty-four mapping to mil doscientos treinta y cuatro, n equals one million mapping to un millón, and n equals negative five mapping to menos cinco. If you need currency-aware legal amount lines with centavos, gendered agreement for una versus un before a feminine noun, or spelling in another language, treat those as separate search intents and landings rather than overloading this integer Spanish spelling page. Aliases number, value, and input are accepted so forms and scripts can use the name that fits their UI. n may be a JSON integer or a string of digits with an optional leading plus or minus sign. Missing n, empty strings, decimals with a fractional part, scientific notation, bare words, NaN, and Infinity fail with invalid_input and are not charged. On success the response echoes the cleaned integer n, the Spanish phrase under words, language set to es for pipeline clarity, and a boolean negative flag. Pricing for successful API calls is the published base of $0.002 per item; validation failures do not consume prepaid balance.
Where Spanish number-to-words tools show up in real work
Because this capability is a pure parse engine, API pricing is the published base of $0.002 per successful item and failed validation does not consume balance.
Integration use cases
Localization and golden test fixtures
Generate expected Spanish phrases for UI copy, invoice templates, and unit tests covering zero, negatives, and large long-scale groups.