Translate XLIFF files online

Translate the text in your XLIFF file while aiming to keep the structure your localization project needs. See the XLIFF 1.2 example below: four Spanish targets alongside the unchanged English sources, with matching inline codes.

forgefile.com XLIFF

XLIFF workflow

Translation
Drop your file here or click to browse from your device
Formatting preserved .XLF, .XLIFF

Translation example

An XLIFF 1.2 file, English to Spanish

A four-unit XLIFF 1.2 example with two x placeholders and two g elements in its English sources. All four Spanish targets are filled, with matching inline-code IDs and ctype attributes. The source text and one note remain unchanged.

Source

app-en.xlf → app-es.xlf before translation

Result

app-en.xlf → app-es.xlf after translation
  • All four source elements unchanged

  • Target inline codes match their sources

    Two x placeholders and two g elements are added to the targets; their IDs and ctype attributes match the source codes.

  • Unit IDs and the note unchanged

  • Language attributes unchanged

    Both files declare source-language="en" and target-language="es".

2026-10-08 verified — Amanda Lee

XLIFF features

Keep each string identifiable

The goal is to retain the structure that connects translated text to your project. In the sample, all four unit IDs and English source elements remain unchanged.

Compare inline codes alongside the text

Download both example files to inspect the two placeholders and two link-code elements. Their IDs and ctype attributes match between each source and its translated target.

Keep translations connected to their source

Keep the source text beside its translation

Use XLIFF when your project exports text for translation in this format. Keeping the original structure helps you match each translated string to its source when you bring the file back into the project.

In the OASIS XLIFF 1.2 specification, a translation unit holds source text and its target translation. Inline elements can represent codes within that text. Those codes need attention during review: a translated sentence may read well even when a placeholder is missing.

What the downloadable XLIFF example shows

The English-to-Spanish example keeps all four unit IDs and all four English source elements. Its four empty targets become Spanish translations. The two x placeholders and two g elements in the source text have matching IDs and ctype attributes in the targets; the text inside the g elements is translated.

The note about the message count stays in English. Both files already declare English as the source language and Spanish as the target language, so this example does not show an automatic language-attribute change. It also has no translation-state attributes or pre-existing target translations to test.

Check the file in the project that will use it

Review the translated targets, then try importing a copy into your localization tool before replacing a project file. Check that each unit maps to the right string and that placeholders appear where the translated sentence needs them.

For interface text, check the actual screen as well as the XLIFF. A short label can need a different translation from the same word in a sentence, and longer wording may not fit a button. The sample covers a small XLIFF 1.2 file; it does not establish compatibility with every exporter or with XLIFF 2.0.

How to translate your XLIFF file

  1. 1

    Upload your XLIFF file

    Choose the .xlf or .xliff export from your project. Keep the original so you can compare it with the translated result.

  2. 2

    Choose the target language

    Select the language you need for this localization file. Check the source language before starting.

  3. 3

    Translate the file

    Start the translation. When the result is available, download it for review.

  4. 4

    Review and test an import

    Compare unit IDs and inline codes, read the translated targets, then import a copy into your project to check the strings in context.

Questions about XLIFF files

What is the difference between .xlf and .xliff?

Both extensions are used for XLIFF files. The extension alone does not identify the version; check the version attribute on the xliff root element. The downloadable example uses version 1.2.

Should text inside an inline code be translated?

Some inline elements surround translatable words. In this example, the g elements contain the terms-of-service and privacy-policy labels, which become Spanish in the targets. Their IDs and ctype attributes stay the same. The empty x placeholders contain no words to translate.

Does this example show reviewed or final translation states?

No. Neither file contains state attributes. Four filled targets show that translations are present; they do not establish that a reviewer approved the wording or that a workflow state was updated.

What if my file already contains translations?

Keep a copy and compare those targets after translation before replacing your project file. The example starts with empty targets, so it does not demonstrate how existing translations are handled or establish an option to translate only empty targets.

Translate your XLIFF file

Upload your localization file, choose the target language and review the translated text before importing it into your project.