Privacy and Security

Invisible Watermarks: How to Hide an Owner Code in Your Photos and Check Copies

How invisible watermarks work, what they survive and what they do not, and a simple routine for marking your photos and checking copies you find online.

Saizul Amin
Saizul Amin5 Nov 2026 · 4 min read
Invisible Watermarks: How to Hide an Owner Code in Your Photos and Check Copies

Photographers, illustrators and small shops often face the same problem: their pictures turn up on other websites, marketplaces and social accounts without permission. A visible watermark helps, but it spoils the picture and can be cropped or painted out. An invisible watermark is a complementary approach: the picture looks unchanged, yet it carries a hidden code that you can read back later.

How an invisible watermark works

Every photo has far more detail than the eye can use. An invisible watermark changes some of that detail by tiny amounts in a pattern that only the right reader recognises.

The Invisible Image Watermark tool divides the picture into 8 by 8 pixel blocks, the same grid that JPEG compression uses, and converts each block into frequency patterns. Three mid-frequency patterns in each block are nudged so that their values fall on one of two interleaved grids, one meaning 0 and the other meaning 1. This method is called quantisation index modulation. Your owner code of up to eight characters becomes 48 bits, plus an 8-bit checksum, and every bit is written into many thousands of blocks.

When the code is read back, each block casts a vote for each bit and the majority wins. Even if some blocks are damaged by compression or edits, the votes of the rest still recover the code, and the checksum confirms whether the read is clean.

Why mid frequencies

Changing the brightest, coarsest patterns would be visible, and changing the finest patterns would be fragile, because JPEG compression discards them first. Mid frequencies are a compromise: small changes there are hard to see but tend to survive normal compression.

The secret key

Without a key, anyone with the same tool can read your code. With a key, the order in which bits are spread across blocks, and small offsets in each block, depend on it. Someone without the key cannot read the code or deliberately target it. Keep the key safe, because you need it to check copies later.

What it survives, and what it does not

An invisible watermark like this survives light to moderate JPEG compression, brightness and contrast changes, colour adjustments, mild noise and re-saving in another format. It does not survive cropping that shifts the 8-pixel grid, resizing that is not reversed, rotation, heavy filters, screenshots at a different size, or printing and rescanning. If a copy was resized and you know your original width, scaling it back before reading often recovers the code.

This makes the watermark a deterrent and a source of evidence, not a lock. It works best alongside other habits: keeping your original files, posting web-sized versions rather than full resolution, and adding a visible mark where appropriate.

A simple routine

  1. Choose a short code you will recognise, such as initials and a year, and a secret key.
  2. Mark your photos in a batch before publishing. Use balanced strength and save as JPEG at a quality of 90 or more.
  3. Check the table: every photo should have a green read-back tick and a quality score, PSNR, of about 40 decibels or more, which means the change is invisible.
  4. Keep the marked files, your originals and a note of the code, key and strength somewhere safe.
  5. When you find a suspicious copy, download it and read it with the same key and strength.

A worked example

A wedding photographer marks 40 photos of 4,000 by 2,667 pixels with a code, a key and strength 20, saved as JPEG. Each photo has 166,500 blocks, so each of the 56 bits is stored more than 2,900 times. The quality score is about 46 decibels, far beyond what the eye can see, and every read-back succeeds. Months later, a copy turns up on a website at the same size, and reading it returns the code with a valid checksum.

What a read result means

A clean read with a valid checksum that matches your code is strong evidence that the copy came from your marked file. A damaged read where most bits still match your code is weaker but still meaningful; the page estimates how unlikely such agreement would be by chance. No read at all does not prove the copy is not yours; it may have been cropped or resized.

Limits

Invisible watermarks are not a legal proof of ownership on their own. For a dispute, your original files, their dates, and any registration or contract matter more. Use the watermark result as supporting evidence, and seek proper legal advice for anything beyond a polite takedown request.

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