Skip to the tutorial
lil cactus

How to change text in an image

Beginner6 minutesUpdated

Quick answer

To change text in a JPG or PNG in Lil Cactus, sample the background with Eyedropper, select the old words with Marquee Select and cover them using Edit then Fill with Foreground if the background is one flat color. Choose the Text tool, match the font, size and color, then type the new words on a separate layer. Export a new image with File then Export then PNG… If your file already has an editable text layer, change its Text content in the Properties panel instead.

A coffee flyer with SUNDAY CLUB replaced by COFFEE CLUB; the smaller line and cup photo stay in place
The sample is a flat PNG. The replacement title is a new text layer. Drag the handle to compare.
Time
6 minutes
Level
Beginner
You need
An image with words to replace; a flat background suits the main steps
Works with
JPG, PNG, WebP and other images; editable text layers in projects and supported PSD files
Open the sample in Lil CactusUse your own photo

Free, no sign-up. Your photo stays on your computer.

In a JPG or PNG, letters are pixels, just like the photo beside them. Clicking them with the Text tool cannot recover their original wording or font settings. You need to cover the old letters, then add new ones. A layered project is different: its text may still be editable.

Here you replace the headline on a coffee flyer. Its cream title panel has one solid color, so a fill repairs it cleanly. Text over a photograph needs background repair first, as explained below.

Replace the title in six steps

  1. Open the image and duplicate its layer

    Open the sample from this page, or choose File then Open… for your image. The sample has one Background layer: the title is part of its pixels. Choose Layer then Duplicate Layer to make Background copy. Work on this copy so the untouched image remains underneath.

    Before covering your own text, note its letter shapes, weight, size and color. For the sample, the title is Arial, bold, 104 px, color #34382F.

    Layers panel with Background copy selected above Background
    Background copy is the working layer. The original is underneath.
  2. Sample the panel and select the old title

    Click Eyedropper in the left toolbar and click an empty part of the cream panel, toward the top right. This sets the foreground color, the front color swatch near the bottom of the toolbar, to the panel’s color.

    Choose Marquee Select in the toolbar. It draws a sharp-edged rectangle by default (Shape: Rectangle, Feather: 0 on the options bar). Drag a rectangle around the whole title, with a little cream space on every side. Start above and left of the S, finish past the B and below the letters, and keep the smaller line outside the rectangle.

    Eyedropper toolbar button ringed between nearby tools
    Click the pipette icon for Eyedropper.
    Marquee Select toolbar button ringed between Move and Lasso
    The dashed rectangle is Marquee Select.
    A rectangular selection around SUNDAY CLUB with cream space around the letters; the smaller line is outside it
    Include all of the title’s edge pixels, but leave the smaller line outside.
  3. Fill the old title with the sampled color

    Choose Edit then Fill with Foreground. The selected rectangle becomes cream, covering the title. Then choose Select then Deselect to remove the dotted outline.

    The smaller line and the cup photo should still be there. If the whole image changed, undo with Edit then Undo and make the rectangle again before filling.

    The Edit menu with Fill with Foreground ringed
    Fill with Foreground uses the color you sampled.
    The cream panel with the title removed and the smaller coffee conversation line still visible
    The flat panel is clear, ready for replacement text.
  4. Match the font, size and color

    Choose Text in the toolbar. In the options bar, the strip under the menus, choose Arial, type 104 for Size and turn Bold on. Click the color swatch near the right end of the options bar, after the alignment buttons, to open Text Color, type 34382F in the # field and click OK.

    For your own design, start with a font whose letter shapes match, then adjust its weight and size. To sample the old title’s color, hide Background copy with its eye icon in Layers before you open the picker, click inside a thick part of a letter, then show Background copy again. Avoid the letter’s soft edge, where it mixes with the background.

    Text toolbar button ringed between nearby tools
    Choose the T icon for Text.
    Text options with Arial, Size 104 px and Bold selected
    The sample title uses Arial, 104 px, bold.
    Whole Color button ringed after the text alignment and direction controls
    This Color swatch opens Text Color.
    Text Color picker with hex color 34382F
    34382F matches the sample’s dark green lettering.
  5. Type the new title

    Click in the cleared panel, aligned with the left edge of the smaller line and about one title line above it. The click sets the line the letters sit on, so click where the bottom of the new letters should be. Type COFFEE CLUB. Click the checkmark at the right end of the options bar (Commit text) to finish.

    If the title needs moving, choose Move, keep the new text layer selected in Layers, then drag the lettering into place. Use View then Zoom In to compare the letters with the smaller line’s left edge. Your new title has its own text layer, so you can revise it later.

    Commit text checkmark ringed at the right of the options bar
    The checkmark commits the text.
    COFFEE CLUB in dark green above the original smaller coffee conversation line
    The replacement title lines up with the smaller line.
    Layers panel with a Text layer above Background copy and Background
    The replacement lettering is separate from the repaired image.
    Move toolbar button ringed above nearby tools
    Use the arrow icon for Move.
  6. Export the image and keep an editable project

    Choose File then Export then PNG…, set File name to coffee-club.png and click Export. PNG suits a design with crisp lettering. For a photograph, JPEG is another option under File then Export.

    Choose File then Save As then Lil Cactus Project… to keep the new text and the untouched original layer editable. Before a project exists, File then Save writes the flattened result back into the opened PNG, or asks where to save it if the browser can’t write to the file. After File then Save As then Lil Cactus Project…, File then Save updates the project. Export always writes a new file.

    PNG export controls showing the file name coffee-club.png
    Export a PNG for sharing and keep a project for later wording changes.

If the file already has a text layer

In a layered project or PSD, select the words’ text layer in Layers. Open Window then Properties if the panel is hidden. Under Type layer, edit Text content, then click outside the field to apply the change. You can also choose Text, click the existing lettering and select the characters you want to replace.

A pixel layer, including text that was flattened before the file reached you, has no editable wording. Use the main steps for that layer.

Text over a photograph or pattern

A flat fill leaves a visible patch on wood, fabric, gradients and photographs. Repair that background first using the object-removal workflow, then add the new text. Keep the selection close enough to avoid covering neighboring details. Missing texture must be reconstructed, so a complex pattern or lettering across a face may need manual work and may not look convincing.

Fix common problems

A rectangle shows around the replacement

The sampled color does not match the whole area. Undo the fill and sample closer to the letters. If the background varies across the rectangle, use background repair rather than a solid fill.

Fragments of the old letters remain

The selection missed some edge pixels or a shadow. Undo the fill and draw a slightly larger rectangle, keeping other text outside it.

The new words do not fit

Longer wording needs more width. Reduce the font size or shorten the wording before stretching the letters: stretching changes their shapes and makes a font match harder.

Changing the font also changes another title

An existing text layer was selected. Finish the edit, select the repaired image layer, then choose Text and click the empty panel to create a new text layer.

What to do next

Changing text in images: questions and answers

Can I change text in a JPG or PNG?

Yes. In Lil Cactus, cover or repair the old lettering, then create a new Text layer. A JPG or PNG does not contain the original text settings, so the font must be matched by eye.

Can I change text in a PSD without removing it first?

Yes, if the PSD contains an editable text layer. In Lil Cactus, select that layer and edit Text content in Properties. Text that has already been flattened or converted to pixels needs the background-repair method.

How do I match the color of replacement text?

In Lil Cactus, open the Text Color picker from the Text options bar and click inside a thick part of a letter of the original text, after hiding any layer that covers it. A letter’s soft edge includes some background color.

Why does replacement text look different from the original?

The font family, weight, size or spacing may differ, and a compressed image can have softer edges than fresh lettering. In Lil Cactus, compare at View › Actual Size (100%) before deciding which setting to change.

Will exporting a PNG keep the new text editable?

No. Lil Cactus exports the finished pixels to PNG. Save a Lil Cactus project as well to keep the replacement text as an editable layer.

Is my image uploaded when I change its text?

No. Lil Cactus opens, edits and exports the image on your device. The image is not sent to a server.