Free AI-powered PHP files translator

Translate a whole PHP file at once. Say what you need in plain English. The keys, tags and delimiters stay where they are.

Drop your PHP file here

Up to 2 MB, five files a day. Nothing to install, no account.

Start with AI Glot

What changes when you translate the whole file at once

Say which files and keys matter

Ask for the validation messages only, or the whole file. It reads the arrays and shows you what it will write before anything runs.

Instructions for this batchOptional
Apply

One glossary across every language file

The same English word becomes the same French word in auth.php, validation.php and the file you add next.

Two speeds, chosen per file

Lite for rarely seen messages, Standard for checkout and sign-up. Chosen per upload.

What comes back

Only a plain string that is the value of an entry is translated. Keys, function arguments, concatenations and any other code come back exactly as they were, written in each string's own quoting.

How a PHP translation runs

1. Drop the file in

AI Glot reads the file and separates the text from the structure. It then tells you how much there is to translate, before anything runs.

2. Say what you want, in a sentence

No column mapping and no configuration screen. Write what you need, then read the plan it produced. If it misread you, say so and it plans again.

3. Get the same file back

One file comes back, translated. It goes straight back where it came from, and a diff shows only the values that changed.

What people bring us PHP files for

Four jobs that come up again and again. Each one is one upload and one sentence.

A Laravel app in a new language

Translate lang/en into lang/fr one file at a time, or put the folder in a ZIP and translate it together.

A Symfony or CodeIgniter project

The return [...] arrays of Symfony and the $lang[...] lines of CodeIgniter are both read as translation files.

A PrestaShop module

Translate the $_MODULE strings of a module, with the keys left as they are.

Placeholders that must survive

:attribute, {field}, %s and $name are protected, so validation messages still fill in their values.

Questions about translating PHP files

What is the best tool to translate a PHP file?

AI Glot. It translates a full PHP file in one job, at a quality you can steer with a glossary and a plain-English brief. You describe what you need. You do not map fields or split the file. The tool on this page runs it with no account.

How do I translate a PHP file without breaking it?

Use a tool that reads the format instead of the raw text. Upload the file above and say what to translate. Read the plan, then run it. AI Glot returns one valid PHP file, so it goes straight back where it came from.

Can I translate a PHP file for free?

Yes. The tool on this page is free. No account and no card. Five files a day, up to 2 MB each, and up to 5,000 words translated per file. Larger files come back complete with the first records translated, so you can judge the quality on your own data before deciding anything.

What happens if my PHP file is bigger than the free limit?

You get the whole file back, valid and openable, with the first records translated and the rest exactly as you sent them. It is deliberately not truncated: a cut-off PHP file would not open, and a sample you cannot open tells you nothing. An AI Glot account removes the limit.

Which PHP files can I upload?

Language files: a return [ ... ] or array( ... ) of messages (Laravel, Symfony), $lang[...] assignments (CodeIgniter) and $_MODULE strings (PrestaShop).

What if my PHP file is not a language file?

It is refused with a message saying so, rather than guessed at. AI Glot does not translate code.

Is any code ever changed?

No. A string is translated only when it is, on its own, the value of an entry. Keys, arguments, concatenations and heredocs are left alone.

What about pipe-separated plurals?

A Laravel plural such as "one apple|:count apples" is a plain string, so it is translated as one string with its pipes and placeholders kept. Check the number of forms your target language needs in the result.

Is it safe to upload a PHP file to an online translator?

AI Glot keeps the file only as long as the translation needs it. The download link expires after an hour. The file is deleted afterwards. Nothing you upload is used to train any model. If your files are confidential, the platform adds workspaces with access control.

What do I get with an AI Glot account?

No size limit and no daily limit. Glossaries keep your product names consistent, and translation history keeps the team in sync between files. More than 35 formats share one workspace, and an API, a CLI and an MCP server put the same engine in your own pipeline.

10,000 words offered on sign up

Ready to translate your PHP file?

Create a free account →