Convert Multi-language JSON to PHP online

Upload a Multi-language JSON file and download it as PHP array. Translation keys, plurals and placeholders are preserved. Free, no account needed.

Pick the source format or let the converter detect it from the file.

Choose the format you want to download.

PHP array

A PHP file that returns an associative array of translations. Laravel, CakePHP and many custom PHP apps load language files in this form.

One file per language. Format documentation

Need it the other way round? Convert PHP to Multi-language JSON.

From: Multi-language JSON

A single JSON file where every translation key holds an object with one entry per language. Handy for small projects, static sites and CDN delivery because all languages travel together.

Used by: custom i18n setups, static site generators, CDN delivery. All languages in one file. Read the Multi-language JSON format guide.

{ "en_US": { "hello.world": "Hello World!", "my_address": "My address" }, "pl_PL": { "hello.world": "Witaj Świecie!", "my_address": "Mój adres" } }
{
  "en_US": {
    "hello.world": "Hello World!",
    "my_address": "My address"
  },
  "pl_PL": {
    "hello.world": "Witaj Świecie!",
    "my_address": "Mój adres"
  }
}

To: PHP array

A PHP file that returns an associative array of translations. Laravel, CakePHP and many custom PHP apps load language files in this form.

Used by: Laravel, CakePHP, PHP. One language per file. Read the PHP format guide.

<?php return [ "HELLO_WORLD" => "Hello world!", "MY_TRANSLATION_KEY" => "This is my translation message!" ]; ?>
<?php
return [
    "HELLO_WORLD" => "Hello world!",
    "MY_TRANSLATION_KEY" => "This is my translation message!"
];
?>

How to convert Multi-language JSON to PHP

  1. Drop your .json file into the converter above, or paste its content.
  2. Click Convert. You get one .php file per language.
  3. Preview the result, copy it or download the files.

What changes between Multi-language JSON and PHP

  • Multi-language JSON holds every language in one file, so the converter writes one PHP file per language found in the source.

Convert and translate in one place

If you need the PHP file in more languages, the fastest route is a free SimpleLocalize project: import the Multi-language JSON file, add languages, run auto-translation with DeepL, Google Translate, OpenAI, Claude or Gemini, and download the result as PHP. The CLI does the same from CI with upload and download commands, so the conversion becomes part of your build. See also translating Multi-language JSON files.

Frequently asked questions

Is the converter free?

Yes. There is no signup and no limit on the number of conversions beyond a few requests per second.

Are my files stored?

No. The file is parsed in memory, converted and returned in the same request. Nothing is written to disk or a database.

What about plurals and placeholders?

Plural forms are normalized to ICU message syntax and written back in the native form of PHP. Placeholders are kept, and Apple and Android specific syntax is translated between platforms. Read more in the pluralization guide.

Translate your PHP files

  • Import Multi-language JSON or PHP files into a free project
  • Auto-translate with DeepL, Google, OpenAI, Claude or Gemini
  • Download in any of the supported formats or publish to the CDN
Start for free
No credit card required5-minute setup
"The product
and support
are fantastic."
Laars Buur|CTO
"The support is
blazing fast,
thank you Jakub!"
Stefan|Developer
"Interface that
makes any dev
feel at home!"
Dario De Cianni|CTO
"Excellent app,
saves my time
and money"
Dmitry Melnik|Developer