◇ guide

How to clean a translation memory

Updated · 7 min read · by the TM Cleaner team at terratra

A translation memory gets worse the longer it is used without maintenance. Every project, alignment and pre-translation run adds units, and nothing takes them out again. This guide covers how to clean a translation memory safely: what to remove, what to keep, and how to check the result before it replaces the TM your work depends on.

Why translation memories need cleaning

A TM decays in three ways.

A clean TM is smaller and faster to search. It offers fewer conflicting matches, and it is safe to use as training data for MT or AI models. A TM that has never been cleaned typically shrinks by a third to a half.

Before you start

Step 1: Export the TM as TMX

TMX (Translation Memory eXchange) is the open XML format that every CAT tool can export and import, which makes it the common ground for cleaning. If you are not sure what is inside one, our homepage explains the TMX format in two paragraphs.

Step 2: Decide what to remove

This is the step that decides whether a clean helps or hurts. Sort what you find into three groups.

Safe to remove

Remove, but choose carefully

Usually keep

Step 3: Clean and preview

You can clean in your CAT tool's TM editor by filtering units and deleting them. That works for a few hundred units. It doesn't scale to a TM with 200,000, and choosing the right variant for every duplicate by hand is not realistic.

A TMX cleaner does it in one pass. With TM Cleaner you upload the TMX and it scans the file and shows the result before anything changes. You see every duplicate group with the variant it would keep, and every junk category with examples and counts. Pick a preset (Lenient, Balanced or Strict), switch any rule off, choose a different winner for a group or keep an individual unit, and the numbers update. Nothing is removed until you confirm. It is free: you can preview a file up to 50 MB without an account, and a sign-in by email link lets you clean files up to 2 GB.

Whatever you use, read 20 to 30 examples in each category before you accept it, especially untranslated and short units. That is where a general rule most often meets a legitimate exception.

Step 4: Check the result

Step 5: Import the cleaned TM

How often to clean

Questions

Will cleaning lower my match rates?+

Removing junk and exact duplicates can't: those units never produced a useful match. Merging different translations of the same source changes which translation you are offered, not whether you get a match. Step 4 shows how to confirm it with an analysis before you switch TMs.

Can I undo a clean?+

Yes, if you keep the file of removed units. With TM Cleaner, importing removed.tmx together with the cleaned file restores every unit. Keep your original export in your backups as well.

Is it safe to upload a client's translation memory?+

Check that your agreement with the client allows processing by an outside tool. TM Cleaner deletes the upload from storage the moment cleaning finishes, and the download links stop working after an hour, when the cleaned files are deleted too.

Do I need the CAT tool that created the TM?+

No. TMX is tool-independent, so you can clean a TM exported from one tool and import the result into another. That also makes cleaning a natural step when you migrate between CAT tools.

Clean your translation memory now

Upload a TMX, preview every change, download the cleaned TM. Free, and no account needed to preview.