Free plan

Invisible watermark

Hide a secret message in a picture, or read it back
POST
/v1/images/invisible-watermark

About this tool

Hides a short message (up to 64 characters) inside a picture so you cannot see it, and can read it back later. This helps you show a picture came from you. Use a secret key and the same key to read it again. It survives saving as JPEG, but not resizing or an uneven crop.
For example, you hide an owner code in your photos before sharing them.

How to use it

  1. Choose this tool.
  2. Add your picture with Upload or drag and drop.
  3. Choose whether to hide a message or read one, and type the message and your key.
  4. Press Generate.
  5. Download the marked picture or read the message on screen.

What you get back

You get a new picture that carries your hidden message, or the message found in a picture.
GOOD TO KNOW
A mark of this kind shows origin; it is not proof against a determined attacker (cropping, resizing, redrawing remove it). A message needs the picture to have room for at least three copies. Counts as one image per picture.
TEST IT LIVE

Try Invisible watermark in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
Images
Plan
Free
Method
POST
Endpoint
/v1/images/invisible-watermark
Tool ID
images.invisible-watermark
Authentication
API key
Accepts
JPEG, PNG, WEBP, GIF, AVIF, TIFF +15 more
Background jobs
Yes
Usage group
Image
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/images/invisible-watermark" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'images=@photo.jpg' \
  -F 'operation=embed' \
  -F 'message=owner:acme 2026-11' \
  -F 'key=my secret'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.images.invisibleWatermark({
    "images": 'photo.jpg',
    "operation": "embed",
    "message": "owner:acme 2026-11",
    "key": "my secret"
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->images()->invisibleWatermark([
    'images' => 'photo.jpg',
    'operation' => 'embed',
    'message' => 'owner:acme 2026-11',
    'key' => 'my secret',
]);
echo $result->requestId;
FAQ

Frequently asked questions

Hide a short message (up to 64 bytes) in the brightness of a picture to show where it came from, and read it back later with the same key. It survives JPEG compression; it does not survive resizing or an uneven crop.

Invisible watermark accepts JPEG, PNG, WEBP, GIF, AVIF, TIFF, SVG, SVGZ, BMP, ICO, APNG, PNM and 9 more. You can send several files in one request.

Invisible watermark is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/images/invisible-watermark with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.