Skip to content
Images

4 min read

Keep Text on Images Legible at Every Size

Choose placement, contrast, size, and export settings for image text that remains readable on phones and after compression.

By GoldieKit · Published

Text displayed over light and dark image areas with contrast cues

Text over an image can communicate a date, label, or short headline, but readability can collapse when the image is cropped, resized, or compressed. A large desktop preview is a poor substitute for a phone-sized export. GoldieKit's Add text to image tool places configurable text layers on a local image. Use it when the text really belongs in the image; keep important web page copy as HTML when readers need to select, translate, resize, or use assistive technology with it.

First decide whether text belongs in pixels

If the text is a product name, price, instruction, or article heading, putting it only in an image can make it inaccessible and hard to update. A responsive web page should usually display that information as real text next to or over the image using HTML and CSS. Image text is more appropriate for a shareable card, a diagram label, or a fixed-size asset whose wording is part of the design. Even then, provide an appropriate text alternative in the context where the image is published.

Before writing, identify the final display sizes. A 32-pixel label in a 1200-pixel export may become approximately 8 pixels tall when shown at 300 CSS pixels. That is too small for many readers. Design at the smallest likely display size, then verify larger sizes. Do not rely on zooming into the source file to judge the final experience.

Place text on a stable background

Avoid placing letters over busy edges, faces, or high-contrast texture. A dark translucent panel or a subtle solid background can make text robust across different crops. White lettering over a photograph may look clear over the sky and disappear over a bright shirt. Test the exact area under every line, especially if the image will be reused with different crop ratios.

Use the Color contrast checker for specific foreground and background colors. It calculates WCAG thresholds for text colors, but a photograph is not one uniform background color. Measure or visually inspect the lightest and darkest areas under the text. If contrast changes across the line, a solid backing is more reliable than a shadow alone. Contrast numbers do not replace a real-device check.

Design choice Benefit Limitation
Solid panel Predictable contrast Covers part of the photo
Translucent panel Preserves some context Underlying detail can still interfere
Text shadow Light visual touch Weak against complex backgrounds
Text in page markup Accessible and responsive Requires control of page layout

Add text in GoldieKit

Open Add text to image or use Image Studio if you need several edits in one export. Choose a working copy of the source. Place the text in an area that survives the intended crop. Set font size, color, and position, then inspect at the expected display scale. Export and open the downloaded file; the preview may not expose all issues introduced by the final format and quality setting.

For a 1200 × 630 social card, keep the critical text comfortably inside the edges. Social platforms may crop previews differently, so verify the published preview instead of trusting a template's safe area. If you use a transparent overlay, test it on both light and dark backgrounds. If you export to JPEG, transparency is flattened and the chosen background becomes part of the pixels.

Compression changes small text

Lossy formats can create ringing around letter edges and blur fine strokes. Compare the exported asset at 100% and at actual display size. A screenshot or diagram with text may be clearer as PNG or lossless WebP than as a heavily compressed JPEG. A photographic card may tolerate JPEG or lossy WebP if the text is large and the backing is strong. The image optimization workflow helps make that choice in the context of a web page.

Do not shrink the entire image simply to meet a byte target without rechecking the smallest lettering. If the asset must be much smaller, shorten the text or move details to adjacent page copy. Legibility is a design constraint, not an afterthought to be solved by a more aggressive quality slider.

A practical final review

Test the export on a phone, a laptop, and a high-contrast display mode if relevant. Can you read the text without zooming? Is it understandable without color alone? Does the crop leave space around it? Does the alternative text convey information that only exists in the image? If the image is part of a website, reserve its dimensions to avoid layout shift and keep the key message in crawlable page text when possible. A little less text in the image usually makes both design and accessibility stronger.

What to do when the background changes

If a reusable template places the same headline over several photos, test the lightest and busiest photo first. A setting that works on a dark landscape may fail over a white wall. Choose a panel whose opacity is strong enough for the hardest source, or provide two deliberate color treatments with clear selection rules. Do not depend on an automatic color sampler to find a safe spot on every image. For a product label, move the text to the surrounding page rather than covering the product feature the reader needs to inspect.


Put the ideas to work


Keep exploring

All guides