XLIFF to CSV
Turn an .xlf or .xliff file into a spreadsheet a translator can work in — one row per segment with its id, source, target, notes and state — without losing the inline tags in the middle of a sentence. When the translations come back, CSV to XLIFF writes them into the original file.
XLIFF to CSV
The version is read from the file — XLIFF 1.2's <trans-unit> or XLIFF 2.0's <unit>/<segment> — and every translatable segment becomes a row, in document order, including those inside nested <group> elements.
How to use it
- Drop the XLIFF file exported from your CMS, app or CAT tool, or paste it.
- Download the CSV and send it to the translator, or open it in a spreadsheet yourself.
- Fill in the
targetcolumn. Leaveidalone — it is how the translation finds its way back. - Merge the finished CSV into the original XLIFF with CSV to XLIFF.
The columns
- id — the
<trans-unit id>(1.2) or<unit id>(2.0). - segment — only when an XLIFF 2.0 unit holds more than one segment: the segment's own
id, or its position if it has none. - source, target — the text, with inline codes shown as described below. A segment with no
<target>yet has an empty target cell. - note — the unit's notes, one per line. In 1.2 these are the
<note>elements of the trans-unit; in 2.0 the<notes>of the unit. - state — 1.2's
stateon<target>(new,needs-translation,translated,signed-off,final…), or 2.0's on<segment>(initial,translated,reviewed,final). - file — only when the document has more than one
<file>, since ids need only be unique within a file: 1.2'soriginalattribute, or 2.0's fileid.
Inline codes: placeholders or markup
A sentence like Click Save to continue reaches XLIFF as text with codes inside it — <g id="1"> around Save in 1.2, <pc id="1"> in 2.0, a self-closing <x/> or <ph/> for a line break or a variable. Two ways to put that in a cell:
- Numbered placeholders (default) —
Click <1>Save</1> to continue, and<2/>for a standalone code. The text itself is plain: an ampersand is&, not&. The numbers refer to the codes in the source, in order; a translator can move them to wherever the grammar wants them, and the merge puts the original element — with all its attributes — back in that place. Numbers rather than names were chosen because{0}-style placeholders from ICU and Java message formats are ordinary text inside a translation and must not be mistaken for tags. - XML markup — the cell holds the element exactly as it is in the file:
Click <g id="1">Save</g> to continue, with text characters escaped as XML. Precise, and the right choice when a developer rather than a translator edits the sheet.
What is left out
- Units marked
translate="no"— on the unit itself or inherited from a group or file — are skipped unless you untick the box. - XLIFF 1.2
<bin-unit>(binary resources) and XLIFF 2.0<ignorable>parts, which hold untranslatable whitespace or codes between segments. - Translation memory matches (
<alt-trans>in 1.2, the Translation Candidates module in 2.0). They stay in the file and are untouched by the merge.
FAQ
Which XLIFF versions are supported?
1.2 (namespace urn:oasis:names:tc:xliff:document:1.2) and 2.0 (…:document:2.0). XLIFF 1.0 and 1.1 files share 1.2's element names and are read the same way.
Can the translator use a spreadsheet?
Yes. The file is UTF-8, so choose UTF-8 if the spreadsheet asks on import, and save it back as CSV rather than .xlsx. Rows can be sorted or filtered freely — the merge matches them by id, not by position.
Can I send only what still needs translating?
Yes — set Rows to only without a target. The merge only touches the rows present in the CSV, so translated segments that were left out stay exactly as they are.
Related tools
- CSV to XLIFF — merge the translated CSV back into the original file
- Android strings.xml to CSV — the same job for an Android app's resources
- XML Validator — find where an XLIFF file stops being well-formed
- XML to CSV — flatten any repeating XML structure into rows
Privacy
100% client-side. The XLIFF file is converted in your browser; nothing is uploaded. See the privacy policy.