How to translate a JSON file: from upload to one valid file per language

Translate a JSON file with Smartcat: upload it, auto-translate only its values into 280+ languages with AI, review each string in context and download one valid file per language. Smartcat is a JSON file translator for developers and product teams, so keys, nesting, i18n placeholders and plurals stay where your code expects them.

Translate any file. In seconds.
Images, docs, video, audio, courses — pick a format and drop your file.
Drop documents here
or browse files · Supports .docx, .pdf, .pptx, .xlsx and more
From
To

Translate

More than 80 of the world’s largest companies have chosen Smartcat

What does translating a JSON file involve?

Translating a JSON file means translating the text values in each key–value pair while the keys, nesting and placeholders stay untouched, so the translated file still parses and your app still finds every string.

A JSON file translator such as Smartcat reads the file’s structure, shows translators only the values, locks variables like {name} and {{count}}, and writes each translation back into a copy of the original structure, one i18n JSON file per target language. The JSON translation file example below shows the same file before and after.

92%

of AI-translated words accepted unedited

92% of words translated by Smartcat AI are accepted without a single human edit.

280+

languages

Translate one JSON file into any of 280+ languages and add new ones whenever you need them.

80+

file formats

Translate 80+ file formats, so JSON, YAML, XML, RESX and XLIFF files can share one glossary.

Example source file: en.json

{
  "checkout": {
    "title": "Checkout",
    "items": "You have {{count}} items in your cart",
    "greeting": "Welcome back, {name}!"
  }
}

Translated file: de.json

{
  "checkout": {
    "title": "Kasse",
    "items": "Sie haben {{count}} Artikel im Warenkorb",
    "greeting": "Willkommen zurück, {name}!"
  }
}
  • Keys and nesting: locked, never translated
  • Values: translated and reviewed
  • Placeholders: locked inside the translation

Why does copy-pasting JSON into a translator break it?

Copy-pasting JSON into a generic translator or an AI chat tool breaks the file because the tool treats keys, quotes and placeholders as text to translate. A JSON file translator separates the values from the code before anything is translated. Here is what goes wrong, and what changes.

Copy-paste into a translator

Keys translatedPlaceholders lostBroken syntax

A JSON file translator

Values onlyPlaceholders lockedOne file per language

Paste the whole file

A generic translator sees keys, braces and values as one text, so a key like “title” can come back as “título” and your code no longer finds the string.

Upload the file as it is

Smartcat reads the JSON structure and shows translators only the values. Keys and nesting are never offered for translation.

Placeholders get translated

{name} turns into {nombre}, or a space lands inside {{count}}, and the string fails at runtime.

Placeholders stay locked

Variables such as {name} and {{count}} are protected inside each string, so translators can move them but not change them.

Quotes and commas break

One unescaped quote or a lost comma and the file stops parsing. You find out when the build fails.

The structure comes back intact

Smartcat writes the translations into a copy of the original structure, one file per language, ready to commit.

Every update starts over

Next sprint you paste the whole file again and pay to retranslate strings that never changed.

Only changes are translated

Translation memory fills every string you already approved, so only new and changed strings are translated and billed.

Which i18n JSON structure do you have?

To translate i18n JSON files, first check how they store strings. There are four common ways: flat key–value pairs, nested objects, i18next namespace files and ICU MessageFormat messages. Smartcat translates the values in all four and keeps keys, nesting and placeholders; the table shows what to check for each.

StructureWhat it looks likeHow Smartcat handles itWhat to check
Flat key–value"checkout.title": "Checkout"Each value becomes one segment; the key is shown to translators as its ID. Export it back as flat JSON.Dots in a key are part of its name here, so keep the export flat.
Nested objects{"checkout": {"title": "Checkout"}}Import it as structured JSON with a path separator: Smartcat flattens the keys for translation and rebuilds the same nesting on export.Use the same path separator for import and export.
i18next namespacescommon.json · "items": "{{count}} items"Import each namespace file, or one collection per namespace. {{count}} and other interpolation variables stay locked in every value.Languages with more plural forms may need extra suffix keys, such as _few and _many in Polish.
ICU MessageFormat{count, plural, one {# file} other {# files}}Plurals become native plural segments in the editor, or stay in ICU syntax; a LocJSON import lets you choose, with an ICU previewer and validator. Export writes plural forms back as ICU-compatible strings.Plural messages are the supported case; test other ICU argument types on a sample file first.

Not sure which one you have? Upload a sample file in the free trial and check the export before you translate a whole release.

How to translate a JSON file in 5 steps

To translate a JSON file in Smartcat, upload the file, auto-translate its values with AI, review each string in the JSON translation file editor, run quality checks and export one valid file per language. Keys, nesting and placeholders stay locked through every step.

  1. Upload your JSON file

    Upload the .json file to a Smartcat project, or create a software localization project and import it through the UI, the REST API or the CLI.

    Smartcat importing keys from a JSON file with the CLI
  2. Auto-translate the values with AI

    Pick your target languages. The Content Translator Coworker translates every value with your glossary and translation memory, while keys and placeholders stay locked.

    Smartcat project progress showing AI translation complete for every word
  3. Review in the JSON translation file editor

    Your reviewers, or linguists from the Smartcat Marketplace, edit each string in the browser with its key ID, comments and any screenshot you attached beside it.

    Translated strings with translation-memory match scores in the Smartcat Editor
  4. Run quality checks before export

    Run linguistic quality checks for terminology, consistency and missing translations, and check each string against its key ID and comments before anything is exported.

    The Smartcat Editor with segment and document comment tabs open beside a translated string
  5. Export one file per language

    Download valid JSON for every language, flat or nested, named by a template such as strings-{LANGUAGE}.json, or pull the files with the CLI in your CI/CD pipeline.

    Import and Export buttons in a Smartcat software localization project

Try these five steps on one of your own JSON files

Automatic JSON file translation tools for developers

Smartcat automates JSON file translation for developers and product teams: import JSON through the UI, REST API or CLI, auto-translate the values with AI, give translators each key’s context, run quality checks and export one file per language, all in one shared project.

See your own JSON files translated with every key intact

Translating large, nested and batch JSON files

To translate large, nested or batch JSON files in Smartcat, split big locale files into collections, import nested JSON with a path separator and upload many files into one project with one glossary and translation memory. For JSON localization across a whole product, see the JSON translator and the software localization platform.

How to translate large JSON files

Big locale files are easier to translate and track in parts.

Split a large file into collections

A software localization project holds several collections, so you can import a large locale file by feature or namespace and follow the progress of each one.

One collection per namespace

common.jsoncheckout.jsonsettings.json

Translate only what changed

Re-import the updated file and translation memory fills every string that’s already approved. Only new and changed strings go to translation and are billed.

  1. Re-importthe updated file
  2. Memory matchapproved strings filled
  3. Translatenew and changed strings only

How to translate nested JSON files

Nesting survives the round-trip when import and export use the same rules.

Keep the nesting with a path separator

Import nested JSON as structured JSON with a path separator. Smartcat flattens the keys for translation and rebuilds the same nesting on export.

  • checkoutpaymenttitle
    is translated as the key checkout.payment.title and exported back as three nested objects.

Export flat or structured

Export JSON or YAML as flat key–value pairs or as nested files, whichever your i18n library reads.

Flat
"checkout.title": "Kasse"
Structured
{"checkout": {"title": "Kasse"}}

How to translate JSON files in batches

Translate a whole set of locale files at once, by hand or from your pipeline.

Many files in one project

Upload several JSON files, or a ZIP package of them, into one project and translate them into every target language together, with one glossary and one translation memory.

  • One glossary for every file
  • One translation memory across releases
  • Target languages you can add at any time

Automate it in CI/CD

Push source strings and pull translations with the Smartcat CLI or REST API, or connect a GitHub, GitLab or Bitbucket repository so files move without manual exports.

Which AI coworkers translate and check your JSON files?

Each coworker handles one step of JSON file translation, from the first draft to the final check. Your reviewers approve every language before export.

JSON localization integrations: Git, CLI, API, Figma and CMS

Move strings between Smartcat, your repositories, design files and content systems without exporting files by hand. See all integrations

JSON localization results from Kaseya and Huel

Kaseya’s developers and Huel’s localization team move strings between their tools and Smartcat instead of emailing files. Each number below comes from their published case studies.

70%

lower localization costs

Kaseya cut localization costs by 70% and reinvested the savings in 8+ more languages.

10+

languages at every launch

Kaseya now launches product updates globally in 10+ languages, with the GitHub integration syncing UI strings during development.

21

weeks of manual work removed a year

Huel eliminated 21 weeks of manual work a year, nearly half an FTE, by connecting its CMS, CRM and Figma to Smartcat.

50%

cost savings compared to agencies

“Smartcat is more than a translation tool for us; it’s integrated with our tech stack.”

Huel localizes its website, email campaigns and Figma creative in nine languages through Smartcat integrations, and reports about 50% cost savings overall compared to agencies.

Read the Huel case study
Magdalena Tumulka
Magdalena TumulkaLocalization Lead, Huel

See what your JSON files look like in every language

What product and localization teams say on G2

What developers ask before they move JSON files to Smartcat

Straight answers to the questions developers ask first, including one thing to test before you rely on it.

“Will it touch my keys?”

No. Smartcat translates values only. Keys and nesting come back exactly as you uploaded them, so the translated file drops into the same place in your repo.

“We already send strings to a machine translation API from a script.”

Keep the script if it works for drafts. Smartcat adds what it lacks: review in context, a glossary, translation memory across releases and quality checks, with only changed strings billed.

“Our reviewers aren’t developers.”

They never open the JSON. They review sentences in the browser editor, with the key ID, comments and screenshots beside each string, and approve each language before export.

“Our strings use ICU plural messages.”

Supported. Plurals import as native plural segments or stay in ICU syntax, and export writes them back as ICU-compatible strings. If your messages use other ICU argument types, upload a sample file in the trial and check the export before a release.

Is your JSON file secure in Smartcat?

Locale files often hold unreleased features and product names. Smartcat protects that content at every step; see how on the Smartcat security page.

Role-based access controls

Set who can view, translate, review and approve strings by team, role or region on enterprise plans.

Single sign-on (SSO)

Sign in through your existing identity provider on enterprise plans.

SOC 2 Type II compliant

Smartcat is SOC 2 Type II compliant and isolates every workspace.

Never used to train public AI models

Your strings and source files are never used to train public AI models.

Audit trails

See who changed what and when across translation and review on enterprise plans.

Encryption and deletion on request

Content is encrypted in transit and at rest, and deleted or returned within 30 days of a written request.

Resources for JSON file translation

Background on i18n, software localization projects and moving strings from design to code.

JSON file translation FAQ

How do I translate a JSON file?

Upload the JSON file to Smartcat, choose your target languages and let AI translate the values while keys and placeholders stay locked. Review each string in context, run quality checks, then export one valid JSON file per language. Developers can do the same through the Smartcat REST API or CLI. To test a single file online first, try the free JSON translator.

Can I auto translate JSON files with AI?

Yes. Smartcat auto-translates every value in a JSON file with AI, using your glossary and translation memory, while keys and placeholders stay locked. 92% of words translated by Smartcat AI are accepted without a single human edit, and your reviewers check the rest in the JSON translation file editor before you export each language.

How do I translate an i18n JSON file?

Upload the i18n JSON file to Smartcat, or import it into a software localization project as flat or structured JSON. Smartcat translates the values into each target language while keys, nesting and interpolation variables such as {{count}} stay locked, then exports one locale file per language, such as de.json or fr.json, for your i18n library.

What is the best way to translate a JSON file?

Smartcat suits product teams that translate JSON files every release, but the best way depends on your files and how often they change. Whichever tool you test, check that it translates values only, locks placeholders, keeps nesting, lets reviewers see key IDs and context, reuses approved strings and exports one valid file per language.

How long does it take to translate a JSON file?

It depends on the size of the file, the number of languages and how much review you add, so Smartcat doesn’t promise one turnaround for every file. AI translates the values first, and most of the elapsed time goes to review and approval, which you control. When you re-import an updated file, approved strings are filled from translation memory, so only new and changed strings need work.

Can I translate a JSON file with a generic machine translator or an AI chat tool?

No, not safely. Generic machine translators and AI chat tools treat the file as plain text, so they can translate keys, alter placeholders or break quotes and commas. Smartcat parses the JSON first, so only values reach translation, and it writes them back into the original structure for each language.

What is a JSON file translator?

A JSON file translator, such as Smartcat, is software that parses a JSON file, separates the translatable values from the keys and syntax, translates the values and rebuilds a valid file for each target language. Good ones also lock placeholders, show translators context and reuse approved translations when the file changes.

What is a JSON translation file editor?

A JSON translation file editor, such as the Smartcat Editor, shows the values of a JSON file as sentences with each key ID beside them, so translators and reviewers edit text without touching keys or syntax. Smartcat adds glossary and translation-memory suggestions, quality checks and approval per language, then exports a valid JSON file for each language.

Can Smartcat translate nested JSON files?

Yes. Smartcat imports nested JSON as structured JSON with a path separator: it flattens the nested keys for translation and rebuilds the same nesting on export. Use the same path separator for import and export. You can also export the result as flat key–value pairs if your i18n library expects them.

How does Smartcat handle placeholders like {name} or {{count}}?

Smartcat locks placeholders inside each string, so translators can move a variable such as {name} or {{count}} to where the target grammar needs it but cannot change or delete it. The translated value carries the same placeholders as its source, and your app fills them in at runtime as before.

Does Smartcat support i18next and ICU plurals in JSON files?

Yes. Smartcat translates i18next JSON files, including interpolation variables, and handles plurals as native plural segments or in ICU MessageFormat syntax, with an ICU previewer and validator for LocJSON. Exported plural forms are written as ICU-compatible strings. Test any other ICU argument types on a sample file first.

Can I translate several JSON files at once?

Yes. Smartcat lets you upload several JSON files, or a ZIP package, into one project and translate them into every target language together. In a software localization project you can keep one collection per namespace or feature and automate imports and exports with the CLI or REST API.

How do I get one translated JSON file per language?

Smartcat exports one file for each target language. You choose the languages, flat or structured JSON and a file name template such as strings-{LANGUAGE}.json, then download the files or pull them with the CLI or REST API into your repository. Language-pair specifics are on the page about how to translate JSON to English and other languages.

How is JSON file translation priced?

Smartcat charges by Smartwords, its single usage unit: translating one source word into one target language uses one Smartword. When you re-import an updated JSON file, approved strings are filled from translation memory, so only new and changed strings are translated and billed. Plans include a Smartwords allowance shared by unlimited users.

Is my JSON content secure in Smartcat?

Yes. Locale files often hold unreleased feature names, so Smartcat keeps every JSON file in an isolated, SOC 2 Type II compliant workspace and encrypts it in transit and at rest. Enterprise plans add SSO, role-based access and audit trails. Your strings never train public AI models and are deleted or returned within 30 days of a written request.

Didn’t find your answer? Talk to a localization specialist

Translate your next JSON file into every language your app ships

See Smartcat translate one of your own JSON files, from upload to one valid file per language, or start a 15-day free trial with 15,000 Smartwords and no credit card.