Text Watermark

Draw a text label on an image. Size it in pixels or as a percentage of the image width.

Use this tool

Drop a file here, or use the picker. The file type is checked from its contents.

Label
Appearance
Size

Result

The result appears in this panel after you run the tool.

About this tool

Pixels mode uses the size field as a font size. If that field is not a positive number, the size is at least 16 pixels and otherwise about one eighteenth of the image width, and the label sits 16 pixels in from the chosen edge. Percentage mode takes the font size from the image width, so 6% of a 2000 pixel photo is 120 pixels and 6% of a 400 pixel photo is 24 pixels. In that mode the gap from the edge is half the font size, and the gap from the bottom is three quarters of the font size, so a batch of different sizes keeps the label in the same relative place. The label is filled with the color and opacity you set.

The format follows the source image when this browser can encode it.

How to use it

  1. Choose an image.
  2. Enter the label, position, color, and opacity. Size the type in pixels, or as a percentage of the image width.
  3. Add the watermark. Percentage mode also scales the gap between the label and the edge.

Limitations

A label in system UI type, on the existing pixels

Position, size, color, opacity

The watermark draws the source bitmap, then fills a text string on top. An empty label becomes the word UtilChain. The font is system-ui at the size you set. The size field starts at 32. If that field is not a positive number, the page uses one eighteenth of the width, and at least 16 pixels. Opacity starts at 0.85 and is clamped between 0 and 1. Color starts at white. Position is lower left by default, with lower right, upper left, and center also available. Lower and upper left sit 16 pixels in from the left. Right-hand positions sit 16 pixels in from the right, minus the measured text width. Center uses the horizontal middle. Upper positions sit one font size plus 16 pixels down from the top. Center sits at half the height. Other positions sit 24 pixels up from the bottom. The canvas is not enlarged to make room. A long label can run off the right or left edge and be clipped.

The text is rasterized by the browser’s canvas text, so the glyphs depend on the fonts installed here. Another computer can paint a slightly different outline for the same words. Alpha of the photo remains under the translucent fill. The label’s own alpha is the opacity you set.

A percentage size reads the width of the decoded bitmap. Six percent of that width, rounded, is the font for a 6 entry. The inset then follows the font: half a font from the side, and three quarters of a font above the bottom. Pixel size still uses the fixed 16 and 24 pixel insets described above, including when the size field is blank and the page falls back to one eighteenth of the width.

Encoding covers the label and the photo

The painted glyphs are the lettering step. A later encode into JPEG or WebP or AVIF covers both the photo and the label. The quality range notably opens at 0.92. It is active for JPEG and WebP. AVIF stays active only after a probe file’s length moves between two settings. A label keeps it off for PNG type, GIF type, BMP type, ICO type, and HEIC type saved as PNG. HEIC cannot be written. If AVIF encoding is absent, preserve intent produces PNG, and the label is in that PNG.

Thin stems in a label are the first thing a harsh JPEG smears. PNG has no quality argument and keeps the rasterized glyphs as painted. GIF may remap the label color into a 256-color palette. BMP flattens partial alpha, including a translucent label, onto white.

One label pass on the file you will publish

Putting a watermark on a JPEG and then compressing that JPEG again dirties the letter edges twice. If the words are wrong, start from the original picture. The download does not remember the string as editable text. It is pixels. A later crop can cut the label off, because the label is just more pixels in the corner you chose.

Privacy

Your input is processed in your browser and is not uploaded to UtilChain. File names, text, and results are not sent to analytics.