Place Text Behind Anything in Photoshop
Your choices stick across every tutorial on this device.
Open any magazine or movie poster and you will spot this effect: a headline that slips behind the subject of the photo. In this tutorial, you will learn how to place text behind anything in Photoshop using a selection, a group, and a single inverted Layer Mask. You will build it on a photo of a car, but the same steps work with any subject you can select.
The technique is non-destructive and beginner-friendly. The text stays live, the mask stays editable, and mistakes are fixed by painting on the mask instead of starting over.
Key Takeaways
- Start with Select > Subject to get an AI-powered selection around your subject, then refine it by hand.
- Press Q for Quick Mask Mode and paint with the Brush Tool: white adds to the selection, black removes from it.
- Put the Text Layer in a group and apply the Layer Mask to the group, so one mask controls several text layers.
- Invert the mask with Ctrl I (macOS: Command I) so the text hides behind the subject instead of covering it.
- Paint on the mask with 30% gray to let text show through glass at 30% opacity, which sells the realism.
Table of contents
- What You’ll Learn
- Requirements
- Tutorial Download
- Keyboard Shortcuts In This Tutorial
- How to Place Text Behind Anything in Photoshop
- Step 1: Select the Subject
- Step 2: Refine the Selection in Quick Mask Mode
- Step 3: Group the Text Layer
- Step 4: Mask the Group and Invert It
- Step 5: Reposition the Text
- Make the Text Show Through the Windows
- Why Mask the Group Instead of the Text Layer
- Refining Tricky Edges
- Frequently Asked Questions
- Your Text, Behind Anything
- Related Links
What You’ll Learn
- Select a subject automatically with Select > Subject
- Fine-tune any selection in Quick Mask Mode with the Brush Tool
- Group a Text Layer and mask the group instead of the layer
- Invert a Layer Mask so text tucks behind the subject
- Paint with gray on a mask to make text visible through glass
Requirements
- Recorded in Photoshop 2022. Any version with Select > Subject will follow along; in older versions, build the selection by hand in Quick Mask Mode.
- A photo with a clear subject and a Text Layer above it, or the practice file from the download below.
Tutorial Download
Keyboard Shortcuts In This Tutorial
| Action | Windows | macOS |
|---|---|---|
| Enter or exit Quick Mask Mode | Q | Q |
| Reset default foreground and background colors | D | D |
| Group the selected layers | Ctrl G | Command G |
| Invert a Layer Mask | Ctrl I | Command I |
| Brush Tool | B | B |
| Zoom Tool | Z | Z |
| Paint a straight line between two clicks | Shift Click | Shift Click |
| View the Layer Mask on canvas | Alt Click the mask | Option Click the mask |
How to Place Text Behind Anything in Photoshop
The starting document has two layers: a background photo of a car and a regular Text Layer on top of it. By the end of this section, the car will overlap the text instead of the other way around.
Step 1: Select the Subject
The first step is to select the object that will sit in front of the text. Photoshop offers many ways to make selections, and one of the easiest is Select > Subject. Photoshop analyzes the image with AI and draws a selection around the main subject for you. It will not be perfect, and that is fine; it is a great starting point.
Step 2: Refine the Selection in Quick Mask Mode
Press Q to enter Quick Mask Mode. The red overlay marks the areas that are not selected. Select the Brush Tool and paint with white over any part of the car the overlay still covers. Remember the rule behind every mask in Photoshop: white reveals and black conceals.
Here is a trick that speeds this up. Click once, then hold Shift and click somewhere else. Photoshop draws a straight stroke between those two points, which makes quick work of the edges along the top of the car.
If an area is selected that should not be, tap D to reset the default colors, make black your foreground color, and paint over that area to deselect it. The selection does not have to be perfect; you can always edit it later. When the car looks solid, press Q again to bring back the selection.
Step 3: Group the Text Layer
Click on the Text Layer in the Layers panel and enable its visibility. Then press Ctrl G (macOS: Command G) to put the text layer inside a group. You will see why the group matters in a moment.
Step 4: Mask the Group and Invert It
With the selection still active and the group selected, click the Layer Mask icon at the bottom of the Layers panel. Photoshop turns the selection into a mask on the group. Notice the problem, though: the text now shows only in front of the car. You want the opposite, so invert the mask. Press Ctrl I (macOS: Command I), or click Invert in the Properties panel. The text drops behind the car.
Step 5: Reposition the Text
Select the text layer inside the group and grab the Move Tool. When you click and drag, the type slides around the canvas and the car keeps overlapping it, exactly the effect you were after. The type is still live, so you can edit or restyle it at any time.
Make the Text Show Through the Windows
To push the realism further, the text should be faintly visible through the glass. A car window is transparent, so type behind it should not vanish completely. A soft gray brush handles it.
- Tap Z and zoom into the window area.
- Select the Brush Tool, click the down-pointing arrow in the Options bar, and reduce the Hardness.
- Click the foreground color swatch, set the brightness to about 30%, and press OK.
- Click on the group’s Layer Mask and paint over the glass.
Because you are painting with 30% gray instead of pure white, the text comes through at only 30% opacity. That partial transparency reads as glass and makes the effect far more believable.
To see exactly what you are doing, hold Alt (macOS: Option) and click the Layer Mask thumbnail. The canvas switches to a view of the mask itself, so you can paint over any areas you missed. Alt-click (macOS: Option-click) the mask again to return to the regular view.
Double-click the Hand Tool to fit the image to your screen. When you drag the text layer with the Move Tool, the transparency travels with it through the windows. Spot a mistake? Click the mask, press B for the Brush Tool, and paint the imperfections away.
Why Mask the Group Instead of the Text Layer
Because a mask on the group controls every layer inside it. The example file has two text layers, “Text” and “Behind”. Each moves independently, yet both tuck behind the car through the same mask. One mask, multiple layers, no duplicated cleanup.
Refining Tricky Edges
For subjects with hair or other intricate detail, refine your mask in the Select and Mask workspace instead of the brush alone. The guide on changing backgrounds in Photoshop covers that workspace in depth.
Frequently Asked Questions
Select the object with Select > Subject, place your text layer in a group, and turn the selection into a Layer Mask on that group. Then invert the mask with Ctrl I (macOS: Command I) and the text drops behind the object.
Your Layer Mask is revealing the text inside the selection instead of outside it. Select the mask and press Ctrl I (macOS: Command I), or click Invert in the Properties panel.
Yes. The mask sits on the group, not on the text layer, so the type stays fully live. You can rewrite the words, change the font, or move the layer at any time.
Set your foreground color to a gray at about 30% brightness, soften the Brush Tool, and paint over the glass on the Layer Mask. The text comes through at 30% opacity, which mimics transparency.
White reveals and black conceals. Gray values sit in between and give you partial visibility, which is how the text shows faintly through the car windows.
No. Get a solid starting point from Select Subject, tidy the obvious problem areas in Quick Mask Mode, and commit. The result is a Layer Mask, so you can keep painting corrections afterward.
Refine the mask in the Select and Mask workspace, which has dedicated tools for hair and intricate edges. A round brush is fine for hard-edged subjects like cars, but soft detail needs the extra help.
Your Text, Behind Anything
That is the whole technique: one AI-assisted selection, one group, and one inverted Layer Mask. Once you understand the flow, you can place text behind anything in Photoshop in a couple of minutes, no matter the subject.
The habits you practiced carry into bigger projects too. Quick Mask refinements, masked groups, and gray paint for partial opacity show up in compositing constantly. Watch the video above to see every step in real time.
Selections and Masking Mastery
Complete course includes 2.5 hours of step-by-step lessons, 6 structured modules, downloadable practice files, and custom Photoshop brushes. Everything you need to master selections and masks in one place.
Keep going
Selections and masks are the backbone of this effect and of almost every composite. To master them properly, check out Selections and Masking Mastery, my complete course on cutting out and blending anything in Photoshop.
And if you are new here, subscribe on YouTube for a new Photoshop tutorial every week.
Related Links
Final Image
Drag the slider to see before and after









