Pro Calculators and Guides

How to Translate an XLIFF File Without Breaking the Tags

Learn how XLIFF files work, how to translate them safely with protected tags and statuses, and how to return a file that imports back without errors.

Saizul Amin
Saizul Amin2 Nov 2026 · 4 min read
How to Translate an XLIFF File Without Breaking the Tags

How to Translate an XLIFF File Without Breaking the Tags

Sooner or later every translator receives a file ending in .xlf or .xliff with the request to just fill in the German. Website builders, app frameworks and content systems export these files because they keep text separate from code. Opening one in a plain text editor is tempting, but it is also the fastest way to return a file that no longer imports. This guide explains the structure of XLIFF, the mistakes that break it, and a safe way to translate it with the free XLIFF Translation Editor.

What is inside an XLIFF file

XLIFF is an XML format from the OASIS standards body. Version 1.2 has been around since 2008 and is still the most common; version 2.0 is newer and cleaner. In both, the text is split into units. Each unit has a source, which is the original text, and a target, which is where the translation goes. A status tells the system whether a target is new, translated, reviewed or final. Notes carry instructions from developers, such as where a string appears or how long it may be.

Inside the source text there are inline elements. They stand for bold or italic text, links, line breaks and placeholders that the program fills in later, such as a user name or a number of items. These elements must appear in the target too, usually in the same order, because the system rebuilds the page or the app screen from them.

Mistakes that break a file

The most common error is deleting or retyping a tag. If a translator types the markup by hand and gets one character wrong, the XML is no longer valid and the import fails. A second error is changing the structure: removing a unit, renaming an ID or mixing up the order. A third is forgetting to change the status, so the system thinks nothing was translated. A fourth is translating text that was locked for a reason, such as a product code marked as not to be translated.

Translating safely, step by step

Open the file in the editor. The source column shows each inline tag as a small numbered chip, and the target box shows the same tags as numbered tokens. You type your translation around the tokens and move them with the words they belong to. If a tag is missing from your target, the cell turns orange and a button appears that inserts it at the cursor, so you never have to type markup.

Use the filter to show only new segments, and work from top to bottom. Typing in an empty segment marks it as draft. When you are happy, press Ctrl+Enter: the segment is set to translated and the cursor jumps to the next one that still needs work. This rhythm is fast and keeps your hands on the keyboard.

Read the context notes in the side panel for each segment. They often hold the answer to questions such as whether Home is a page title or a button. Some units also carry a maximum length in characters; the editor shows the limit and warns as soon as you go over it, which matters for buttons and menu entries.

Getting help from memory and machine suggestions

Repeated sentences are common in software and help pages. The side panel shows fuzzy matches from segments you already translated in the same file, with a percentage score. If you have a translation memory from earlier projects, load it as a TMX file and its matches appear as well.

For English with German, French or Spanish you can also turn on a local machine translation model. It is downloaded once, at about 110 megabytes, and then runs inside your browser, so the text of the file is not sent to an online service. Treat its output as a rough draft: check terminology, numbers and tone, and place the tags it moves to the end of the sentence.

Checking before you deliver

Before saving, switch the filter to segments with QA hints. The editor checks every target for missing or extra numbers, missing tags or placeholders, a different final punctuation mark, double spaces, repeated words and unbalanced brackets. Fix what is real and ignore what is intentional, for example a colon that German style drops in a heading.

Returning the file

Press the XLIFF button to download the file. The editor writes your targets, statuses and comments into the original structure and keeps IDs, notes and other elements, so the system that exported the file can import it again. A bilingual CSV or a TMX of your translations can be downloaded too, which is handy for your own memory. Keep the original file until the client confirms a successful import, and remember that XML comments inside the file are not kept, so mention any you relied on.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages