I♥.png

How to edit text in an image

A PNG or JPG has no text layer — the letters are pixels, so there is nothing to retype. You either erase the old text and redraw it by hand in an editor like Photopea or GIMP, go back to the original PDF or design file where the text is still live, or use an AI editor that regenerates the selected pixels with the new wording.

Why you cannot just click and type

When an image is exported, text is rasterised: it stops being characters in a font and becomes a grid of coloured pixels, indistinguishable from the rest of the picture. No tool can click into a word that no longer exists as a word.

This is why the first question is always whether the original still exists. A PDF, PSD, Figma file or Word document keeps text as text, and editing it there is exact by definition. Converting a PDF to an image and then trying to edit the image is a step backwards.

The manual route

In Photopea, GIMP or Photoshop: clone or copy a clean patch of background over the old text, identify the typeface, then retype it with the Type tool. Match the colour with an eyedropper on a thick stroke, not an edge, and match the size by comparing x-heights with neighbouring untouched text at high zoom.

Two details decide whether it reads as genuine. Kerning: adjust the gaps until they match the untouched words on the same line. Anti-aliasing: set the text layer to the same edge softness as the original, because the wrong setting is the most common giveaway.

Where possible, retype the entire line rather than patching one word. Spacing errors disappear when the whole line is yours.

The AI route

An image model can regenerate a selected region with new wording, matched to the surrounding type. It handles textured and photographic backgrounds that manual patching struggles with, and it is far faster.

The trade is exactness: the model imitates the font rather than copying it, so very small or tightly kerned text is where it struggles most. Draw the selection tight around the text — slack space is room for the model to invent things.