
A sidecar XMP file is a small text file that sits next to a raw photo and holds the edit settings and metadata for that image. Lightroom keeps your edits in its catalog first, and writes them to XMP files only when you ask or when a setting tells it to.

Why Edits Live Outside the Raw File
Editing a raw photo in Lightroom never changes the original file. Instead, the program records a list of instructions, such as exposure, white balance and crop, and applies them each time it shows the image. That list has to be saved somewhere, and there are two places: the catalog and the sidecar file.
A sidecar file shares the name of the raw file but ends in .xmp. For example, a raw file named IMG_0042 would sit beside IMG_0042.xmp. Scores, keywords and color labels can be stored there too.
Where Lightroom Stores Your Edits
- In Lightroom Classic, the catalog file is the main record of your edits and metadata.
- XMP data is an extra copy, written on request, that travels with the photo.
- For DNG, JPEG and TIFF files, the information can be written inside the file itself, so no separate sidecar is needed.
- Other Adobe tools, such as Bridge and Camera Raw, read XMP sidecars directly when they open a raw file.
How to Write XMP Files in Lightroom Classic
- Open the Catalog Settings and go to the Metadata tab.
- Tick the option to automatically write changes into XMP if you want every edit saved beside the file. This can slow things down on large libraries.
- Or, to save on demand, select your photos and use Metadata, then Save Metadata to File.
- Check your folder in a file browser. A new .xmp file should appear next to each raw file.
Keeping Sidecars Safe
The biggest trap is moving files. If you move or copy a raw file in a file browser and leave the .xmp behind, the edits do not follow it. Always move the pair together, or move files inside Lightroom so it handles the sidecar for you.
For backups, copy the catalog and the photo folders, including any .xmp files. If you plan to open the same raw files in another editor, write the XMP data first. Other programs may read some of it, but support for specific edit settings varies, so confirm on the software maker’s page.
| File type | Where edit data goes |
|---|---|
| Raw (maker format) | Catalog, plus optional .xmp sidecar |
| DNG | Catalog, plus inside the file when saved |
| JPEG and TIFF | Catalog, plus inside the file when saved |
What Is Actually Inside an XMP File
An XMP file is plain text written in a structured format, which is why it is tiny compared with the raw photo beside it. If you open one in a text editor, you will see lines of tags and values describing the photo. This makes the format readable and easy for different programs to parse, which is the reason it was designed as an open standard for metadata.
The content falls into several groups. Descriptive information includes the title, caption, keywords, star rating, color label and flag status. Technical information can include camera details. Develop settings record the instructions used to render the image, such as exposure, contrast, white balance, tone curve, crop, local adjustments and applied presets. The file also records which version of the processing engine the settings were made with, so that the image renders consistently later.
Not every program understands every field. Some programs read the descriptive fields, like keywords and ratings, but ignore develop settings written by a different editor, because each editor has its own way of rendering a raw file. Some develop settings are stored in private sections of the file that only the original program interprets.
- Keywords, ratings and captions travel well between programs.
- Develop settings are usually understood only by the editor family that wrote them.
- Crop and orientation may be partly understood elsewhere, but check the result.
- Never edit the file by hand unless you know what you are doing, since a damaged file can lose settings.
Because the file is small, it is easy to back up, but it is also easy to lose track of, which is why file handling habits matter.
Moving, Renaming and Deleting Photos Safely
Most XMP trouble comes from file management done outside the editing program. The sidecar is linked to the raw file by name and location, so any change that separates them breaks the link. The safest habit is to perform file operations inside Lightroom, where it renames, moves and deletes the sidecar together with the photo.
If you must use a file browser, treat the raw file and its sidecar as a pair. Select both when moving or copying, and make sure the sidecar keeps exactly the same base name as the raw file. If you rename the raw file in a file browser, rename the sidecar as well, or the link is lost.
- Before a big reorganization, save metadata to files for the photos involved.
- Check that sidecar files exist next to the raw files you plan to move.
- Use the program’s own move or rename tools when you can.
- After moving, open the folder in the program and check that edits appear.
- If a folder shows as missing, use the program’s option to locate it, rather than re-importing, which could create duplicates.
When deleting, remember that removing a photo from the catalog is not the same as deleting it from disk. Deleting from disk through the program usually moves the raw file and its sidecar to the system trash. Deleting just the raw file in a file browser leaves an orphaned sidecar behind, which is harmless but untidy. Clean up occasionally by searching for sidecars with no matching raw file.
Sharing Edits Between Computers and Programs
People often want to continue work on another computer, or open the same photos in a second program. Sidecar files make this possible, but the process needs care. A catalog lives on one computer, so a second machine will not see the edits unless the data travels with the photos or the catalog is moved.
One approach is to write XMP data for all photos, copy the photo folders with the sidecars, and then import them into the catalog on the second computer. The program reads the sidecars and shows the edits. Be aware that this is an import and not a live sync, so changes made afterward on one machine do not appear on the other unless you repeat the process.
Another approach is to move the whole catalog and the photo folders together. This keeps a single record but requires that only one computer works on it at a time. Check the maker’s documentation on how to move catalogs safely, and keep a backup before you try.
- Keep the same folder structure on both machines to avoid missing-file warnings.
- Write metadata before copying, and let the writing finish before disconnecting a drive.
- Do not edit the same photos on two machines at the same time.
- If you use cloud-based Adobe tools, understand that they sync edits differently from the classic catalog workflow. Read the documentation for the version you use.
When opening raw files in another editor, expect to redo the develop settings. Keywords and ratings may carry over, but the look may differ, so export finished images as TIFF or JPEG if you need to hand off the result.
Backup Strategy for Catalogs and Sidecars
Because edits can live in two places, a sound backup plan covers both. The catalog file holds your edits, collections, flags and history, while sidecars and the photos themselves live in your folders. Losing either can cause pain, and a backup that covers only one leaves gaps.
A sensible routine has three parts. First, back up the photo folders, including all sidecar files, to a separate drive. Second, back up the catalog regularly, using the program’s own backup option as well as copying the catalog file. Third, keep at least one copy off-site or online, so a fire or theft does not take everything.
- Decide on a schedule that suits your shooting rhythm, such as after each import and each editing session.
- Use the program’s backup option when it prompts, and store backups on a different drive from the main catalog.
- Copy the photo folders using a tool that preserves hidden and small files, and check that .xmp files are included.
- Keep several generations of catalog backups, in case a problem goes unnoticed for a while.
- Test your backup by opening a copy of the catalog and confirming that photos and edits appear.
Be careful with sync services that treat small files differently or conflict when two versions exist. If the sidecar changes while a sync is running, you may end up with duplicates or conflicts. A backup that you have never tested is only a hope, so schedule a periodic check.
Troubleshooting Missing or Mismatched Edits
Sometimes the edits you expect do not show up, or the image looks different from what you remember. Several common causes have simple fixes.
- Edits not visible after import: the sidecar may have been left behind or have a different name. Check the folder in a file browser and confirm the names match.
- Program shows a metadata conflict: this appears when the file’s metadata differs from the catalog. Choose whether to keep the catalog version or read the file, depending on which holds the newer changes.
- Image looks different on another computer: the processing version, camera profile or missing presets may differ. Check that software versions are current and that required presets are installed.
- Sidecar missing for some photos: automatic writing may have been turned off at the time, or the files may be in a format that stores data inside the file.
- Read-only folders or drives: the program cannot write sidecars to a location it cannot modify. Check permissions and make sure the drive is not locked.
If you suspect damage, work on a copy. Export the photo with its current look to a TIFF or JPEG before trying fixes, so you have a safe version. In many cases, re-importing from the folder with sidecars, or using the option to read metadata from files, restores the lost settings.
Finally, prevent problems with a few habits: keep a consistent folder system, avoid renaming outside the program, write metadata after big edits and test your backups. These steps take little time and protect a library you may have spent years building.
FAQ
If I delete the XMP file, do I lose my edits?
Not if the catalog still has them. The catalog is the main record in Lightroom Classic. But if you open the folder in another program or on another computer, the edits will be missing without the sidecar.
Why do I not see XMP files next to my photos?
Lightroom only writes them when automatic writing is on or you save metadata manually. Photos in JPEG, TIFF or DNG format store the data inside the file instead.
Can I open an XMP file in a text editor?
Yes, it is plain text. You can read it to see tags and settings, but avoid editing it by hand unless you know the format, since mistakes can damage the settings.
Will other editors read my Lightroom develop settings from XMP?
Usually not fully. Keywords, ratings and captions often carry over, but develop settings are generally understood only by the same editor family, so the image may look different elsewhere.
What happens if I rename a raw file in a file browser?
The sidecar loses its link unless you rename it to match. Use the editing program's rename tool when possible, so it keeps the pair together.
Do I need to back up XMP files?
Yes, if you rely on them to carry edits with the photos. Include them in your folder backups, along with the catalog backup.
Can I turn off automatic XMP writing?
Yes, in the catalog settings. Turning it off can speed up large libraries, but remember to save metadata to files before moving photos or sharing them with another program.
Why do some photos have no sidecar file?
Formats such as DNG, JPEG and TIFF can store the data inside the file, and raw files only get a sidecar when writing is on or metadata has been saved.
Can two computers edit the same photos using sidecars?
Not simultaneously. You can pass photos with sidecars between machines and import them, but changes do not sync live. Work on one machine at a time to avoid conflicts.
What is the safest way to test that my edits are protected?
Save metadata to files, copy a few photos and their sidecars to a new folder, then import them into a test catalog and see if the edits appear. This confirms the pair works as expected.
The Short Version
Sidecar XMP files are small companion files that carry your edit settings and metadata beside a raw photo. Lightroom Classic stores edits in its catalog and writes XMP on request. Keep each sidecar with its raw file and include both in your backups.
Related Guides
- How to Use Reference View in Lightroom for Consistent Edits
- Lightroom Classic: Edit Without the Original Files Offline
- 360 Degree Product Photography Setup for Ecommerce Stores
- How to Use the Capture One Color Editor for Targeted Color Edits
- How to Use Layer Masks in Photoshop for Non-Destructive Edits