How to edit text in image designs without a visible patch
Published
To edit text in an image, erase the old words with an inpainting or text-removal tool, then type the new words on top in the same font, colour and size, and check the result at full zoom. This guide shows how to edit text in image files such as banners and price cards, including the step most tools skip: working out the font size from the height of the old letters.

How to edit text in image files: which steps come first?
Remove first, retype second. If you type over the old words without removing them, the old letters show around the edges of the new ones. The order that works on any editor:
- Measure. Note where the old text sits and how tall its capital letters are, before you erase anything.
- Mask. Paint a mask a little larger than the letters.
- Fill. Let the tool rebuild the background under the mask.
- Retype. Add the new words as a text layer in the matching font, colour and size.
- Check. Compare the new text with the rest of the image at full size.
Arteza's inpaint tool removes the old words and fills the background so you can type the new ones. In the Arteza inpaint tool you Paint over the area to replace, then describe what should fill it. The other text-editing tasks, such as cropping or chaining edits, sit in the Arteza AI image editor.
How do you remove the old text cleanly?
Paint a mask slightly larger than the letters and describe the background that belongs there, not the words you want gone. A fill prompt such as "plain red background" tells the model what to draw; "remove the text" does not.
- Use a healing brush on flat colour. Adobe's help page explains that The healing brush clones nearby pixels and blends them over the selected area, which works well on simple or uniform backgrounds.
- Use generative fill on texture, gradients or photos. Of its own Generative Remove tool, Adobe notes that results are strongest when the background behind the text has consistent texture or color (Adobe Firefly, remove text from pictures).
- Include drop shadows, outlines and glows in the mask. They are part of the old text.
- Use word-based removal when painting is fiddly. The Arteza object remover takes a description instead of a mask, with No brush or mask needed, and lists text among the things it Removes people, text, and clutter.
In Arteza, inpainting costs 0.5-0.8 credits per inpaint and accounts get 10 free credits every day (as of 28 November 2026). Uploads take JPEG, PNG, WebP up to 10MB (as of 28 November 2026).
Only edit text in images you own or may change. Adobe's page makes the same point for watermarks: You can remove watermarks from images you own or have explicit rights to modify.
How do you match the original font size?
Measure the height of a capital letter in pixels and divide it by the font's cap-height ratio; the answer is the font size to type. The ratio differs from font to font, so measure it once: type a capital H at a size you know and read its height.
Banner: 1080 x 1080 px Old text: "SALE 20%", one line, all capitals Part to replace: "20%" Pixel bounds of "20%": x 560 to 780, y 504 to 576 Width = 780 - 560 = 220 px Height (cap height) = 576 - 504 = 72 px 1. Mask box (margin = 1/6 of the cap height) Margin = 72 / 6 = 12 px on every side Mask = x 548 to 792, y 492 to 588 Mask size = 244 x 96 px 2. Cap-height ratio of the font (measured once) Capital H typed at 100 px measures 70 px tall Ratio = 70 / 100 = 0.70 3. Font size to type Font size = 72 / 0.70 = 102.9 -> 103 px Check = 103 x 0.70 = 72.1 px cap height (old: 72 px) 4. Position Left edge = x 560 (same as the old "2") Baseline = y 576 (bottom of the old capitals) 5. Width check New "30%" must end near x 780. If it ends past x 792, it runs outside the mask: widen the mask and fill again.
The margin keeps the fill from leaving a faint outline of the old glyphs, and the baseline keeps the new number on the same line as "SALE". Rounding the font size by one pixel either way is invisible at banner size; a guess that is off by several pixels makes the new number look pasted in.
Match the colour with an eyedropper on the thickest part of an old letter, not on its edge, where anti-aliasing mixes it with the background.
Can AI rewrite the text for you?
Some AI editors can draw new words into a masked area from a prompt, but you do not control the exact letters or the font, so retyping is safer for prices, dates and names. Adobe describes Generative Fill as a tool that lets you replace a selected area with content generated from a text prompt. Arteza's inpaint fills the area from your description too, and the Arteza editor lists smart edit (text-guided changes) among its tools.
Generated letters can come out misspelled or in a slightly different typeface. Use a prompt-based fill for the background and add the words yourself as a text layer.
Why does the edit look patched?
An edit looks patched when the mask was too tight, the background has texture the fill could not rebuild, or the new text is a different size or sharpness from the rest of the picture. Arteza's inpaint page gives the first cause plainly: Usually the mask is too tight.
| What you see | Likely cause | Fix |
|---|---|---|
| A faint outline of the old letters | Mask too tight | Widen the mask and fill again |
| A smooth blob on a textured background | Healing brush on texture | Switch to generative fill and describe the texture |
| New text looks larger or smaller | Font size guessed | Measure the cap height and divide by the ratio |
| New text looks sharper than the rest | The old text was softened by compression | Add a slight blur to the new text layer, or export at the same quality as the original |
| New text floats above or below the line | Baseline not matched | Align the bottom of the capitals with the old baseline |
Before you export, compare the saved file with the edited version at full zoom. If the letters went soft, save again as PNG or at a higher quality setting.