Why a JPEG comment contains unexpected text
Learn what a JPEG comment stores, why it may show old, strange, or garbled text, and how to check whether it is separate metadata or a file problem.
A JPEG looks normal, but a photo viewer or metadata report shows a comment you do not recognize. It might be an old note, a software label, or a string of garbled characters. That text is usually stored separately from the visible picture.
Check what kind of field you are looking at before deleting anything. A JPEG comment is not the same as a caption or camera detail, and the text alone does not mean the image is damaged or unsafe.
Check the comment and the other metadata
- Make a copy of the JPEG first. Keep the original unchanged so you can compare it or recover information if a cleanup removes something useful.
- Open the copy in a metadata viewer that identifies JPEG comments. For background on other fields that may appear alongside it, see how to inspect EXIF fields.
- Write down the exact comment, including punctuation and unusual characters. Note whether the viewer labels it Comment, UserComment, Description, or something else.
- Check whether the file also has EXIF, IPTC, or XMP metadata. These are different places for information about a photo. This guide explains how to check for XMP and IPTC metadata.
- Compare the copy with an earlier version of the same image, if you have one. If the comment appears only after a particular edit or export, that gives you a clue about which program or workflow added it.
Do not edit the comment by changing random characters in the file. JPEG data has a structure, and an incorrect edit can make the image unreadable.
What the result means
The comment is a sentence or a short label
A person or program probably entered it. It could be a processing note, an internal label, a description copied from another file, or text added by a camera utility or photo workflow. If you recognize the wording, check the programs and services that handled the image.
The comment looks like old text
JPEG files can retain information from earlier versions of an image. An editing program may preserve metadata when it saves a new copy, even after the visible picture has changed. The comment might describe an earlier edit or another use of the file, not its current appearance.
The text contains strange symbols or replacement characters
The comment may have been written using one character encoding and read using another. Character encoding is the way a program represents letters and symbols as bytes. Older software and newer viewers do not always interpret those bytes the same way, so ordinary text can appear garbled.
The comment looks like random code or numbers
The viewer may be displaying bytes that were not intended to be readable text, or it may be interpreting a different metadata field as a comment. Check the field name and try a second viewer before assuming the file contains a meaningful message.
The comment is not shown in every app
Many photo apps hide comments or show only common details such as date, camera model, and dimensions. A metadata viewer can expose fields that a regular gallery does not display. That difference does not by itself mean the file changed or that one app is wrong.
How to remove or correct it
- Confirm which field you need to change. JPEG Comment, EXIF UserComment, IPTC caption, and XMP description are separate fields. Removing one may leave another copy of the same text behind.
- Use a tool that names the exact field. Choose a metadata editor or cleaner that explicitly supports the JPEG comment segment, rather than an export option that only says it removes some metadata. Work on a copy.
- Check Windows' available properties. In Windows 11, right-click the file in File Explorer, choose Properties, then Details. You can use Remove Properties and Personal Information to review fields Windows can remove. This may not expose or remove every JPEG comment, so verify the result in a metadata viewer.
- Use an app with explicit metadata controls on macOS. Finder's Get Info window is not a complete JPEG metadata editor. Use an image or metadata app that identifies the JPEG comment field, and confirm that its cleanup option removes that field rather than only camera details.
- Verify the cleaned copy. Reopen it in a metadata viewer and check the comment plus EXIF, IPTC, and XMP fields. A comment can be removed while a similar caption remains elsewhere.
- Keep useful information when needed. Before removing all metadata, consider whether you need the capture date, copyright details, or camera settings. Make a separate sharing copy if you want to keep the original record.
Why comments survive editing
A JPEG contains image data and can also contain metadata segments. The comment segment, commonly identified by the JPEG marker COM, is separate from the pixels you see. Saving a new version can change the image while leaving some metadata intact, depending on the application and its export settings.
There can also be several kinds of descriptive text in one file. For example, a JPEG comment might contain an editor's note while an IPTC caption contains a public description. Removing the comment alone will not remove the caption. This is why it helps to identify the field name before cleanup.
If the unexpected text includes private information, do not assume that hiding it in a photo app removes it from the file. Verify the cleaned copy before sharing it, especially if the image will be posted publicly.
