How To Place Text Behind an Object in Photoshop

247K views 5,683 likes 418 comments

Jump to a step in the video (6)

Click a time to play the video from there.

  1. 0:00 Introduction
  2. 0:39 Type The Text
  3. 2:28 Making The Selection
  4. 3:45 Refining The Selection
  5. 5:30 Making The Mask
  6. 7:20 Painting Hair In
Show Shortcuts for
Text size
Appearance

Your choices stick across every tutorial on this device.

Text behind a person in Photoshop is a compositing effect that hides part of a Text Layer behind your subject using a selection and a Layer Mask.

This is a popular text effect often used in magazines and movie posters.

This tutorial shows you how to recreate the text behind a person effect using non-destructive techniques. The example below shows the image you will work with, and what the text looks like behind the model.

Text Behind a Person in Photoshop

This is a straightforward tutorial that will teach you about selections, Layer Masks, and Text Layers. You will also learn useful techniques that will help you with any project.

Here’s the image that I’ll be using. You can download a free watermarked version from Adobe Stock, but you can follow along with any photo.

Note: Select Subject shipped in Photoshop 2018, version 19.1, in January 2018, and it has gotten more accurate since. The workflow in this tutorial is the same today.

Key Takeaways

  • Select Subject gives you a fast starting selection, but you still need to refine it in Select and Mask.
  • Apply the Layer Mask to a group, not to the Text Layer itself, so every layer inside the group shares one mask.
  • Holding Alt (Windows) or Option (macOS) while you click the Layer Mask icon creates an inverted mask in one step, instead of inverting it afterward.
  • Flyaway hair that the mask hides can be hand-painted back in with a small brush loaded with colors picked from the hair itself.
  • Matching the blur on painted hair to the photo’s own depth of field with Gaussian Blur is what sells the illusion.
  • The text stays on an editable Text Layer the whole time, so you can still change the words after the effect is done.

What You Will Learn

  • How to select the main subject of a photo with Select Subject and refine it in Select and Mask.
  • How to apply a Layer Mask to a group so it controls every layer inside.
  • How to hand-paint flyaway hair details a mask cannot capture.
  • How to match the depth of field of painted details to the rest of the photo.
  • How to keep your text fully editable while it appears to sit behind your subject.

Requirements

Before you start

Text Behind a Person in Photoshop Keyboard Shortcuts

ActionWindowsmacOS
Select the Horizontal Type ToolTT
Commit a text edit or transformCtrl EnterCommand Return
Free Transform (scale)Ctrl TCommand T
Constrain proportions while scalingShift (hold)Shift (hold)
Select All (center-on-canvas trick)Ctrl ACommand A
Select the Move ToolVV
DeselectCtrl DCommand D
Subtract from a selectionAlt-dragOption-drag
Create an inverted Layer MaskAlt-click Layer Mask iconOption-click Layer Mask icon
Swap Foreground/Background colorXX
Select the Brush ToolBB
Decrease brush size[[
Temporarily switch to the Eyedropper ToolAlt (hold)Option (hold)
Select the Zoom ToolZZ
Fine-tune the Radius by 0.1 pxUp/Down ArrowUp/Down Arrow

Step 01 – Type and Style Your Text

The first step is to type a word over your photo.

Start by selecting the Horizontal Type Tool from the Toolbar. You could also press T (Windows) or T (macOS) to select it.

Horizontal Type Tool

The font is not essential to the tutorial, but I am using Gotham Light in this example. Feel free to use any font that you like.

Gotham Light Font

Style Your Text

Before you type over your image, apply any character styles that you like. For example, if you want your text to be in all caps open the Character Panel by going to Window > Character.

Then click on the All Caps icon.

Character Panel

You could also change the Leading, Tracking, Kerning, and other attributes from this panel.

Type Over Your Image

Type anything that you like over your photo. I will type the word “Behind” over to the left of the photo.

Type Text in Front of Photo

Remember to commit your changes by pressing CtrlEnter (Windows) or CommandReturn (macOS) or by clicking on the checkmark in the Options Bar.

Commit Changes

Step 02 – Resize Your Text

If your text is too small (or too big), you can scale it just like you would any other layer.

Press CtrlT (Windows) or CommandT (macOS) to enter the Transform mode. Then hold Shift (Windows) or Shift (macOS) and click-and-drag on any bounding box corner handle to scale the text.

Holding Shift (Windows) or Shift (macOS) as you transform allows you to scale the text without distorting the proportions.

Scale Text

Press CtrlEnter (Windows) or CommandReturn (macOS) to commit your transformation.

Step 03 – Move Your Text Into Position

You can use the Move Tool to place the Text Layer anywhere that you like.

Center The Text on Canvas

If you would like to center your text to the canvas, you can use this neat little trick.

Press CtrlA (Windows) or CommandA (macOS) to make a selection around the entire canvas.

Then select the Move Tool by pressing V (Windows) or V (macOS). In the Options Bar, you can click on the Align icons to align the Text Layer.

Click on the Align Vertical Centers and on the Align Horizontal Centers to center the text layer to the center of the canvas.

Align Horizontal/Vertical Centers

Press CtrlD (Windows) or CommandD (macOS) to deselect.

Disable The Text Layer

Once you have positioned the text exactly where you want it,  you can disable the Text Layer by clicking on the eye icon.

Eye Icon Text Layer

Step 04 – Make a Selection Around the Main Subject of Your Image

To create the illusion that there is text behind the model, you will need to create a Layer Mask that will selectively hide parts of the text.

Start by making a selection around the main subject of your image.

One of the easiest ways to make a selection in Photoshop is by using the Quick Selection Tool.

Quick Selection Tool

You can drag across your main subject to make a selection.

Select Subject (Photoshop 2018 and Newer)

If you are on Photoshop 2018 or newer, then there’s a tool that can help you get started quicker.

With the Quick Selection Tool active you will notice that the Options Bar has a button labeled Select Subject.

Select Subject

When you click on Select Subject, Photoshop uses machine learning to automatically select the main subject of the photo.

In this case, Select Subject does an excellent job. There are only a couple of areas that you need to fix to get a good selection.

Select Subject Selection

Select Subject will never make a perfect selection; you will always need to fine-tune it. But it gives you a jump-start in the selection process, and it saves you a little bit of time.

Since this tool is using artificial intelligence, I think that in newer releases of Photoshop this tool will get much better.

If you just need a fast version of this effect on any object, see how to place text behind anything in Photoshop with an even quicker method.

Step 05 – Fix Problem Areas with Your Selection

Whether you used the Quick Selection Tool or Select Subject, you will need to refine your selection and fix problem areas.

Remember that with the Quick Selection Tool you can hold Alt (Windows) or Option (macOS) to subtract from the selection.

Don’t spend too much time fine-tuning your selection; you don’t need a perfect selection at this point. Later on, you can focus on fine-tuning areas that require it.

Step 06 – Refine Your Selection with the Select and Mask Workspace

Once you’re done making your selection, you will need to refine it.

You can refine your selection by clicking on the Select and Mask button in the Options Bar.

Tip: For a closer look at every slider in this workspace, see the full Select and Mask workspace tutorial.

Select and Mask Button

If you are using Photoshop CS6 or older, then this option will read Refine Edge. The interface will be a bit different, but all the tools and settings that we use in this tutorial are also available in the Refine Edge dialog.

Note: If you’re on a newer version of Photoshop and want to bring back the old Refine Edge/Refine Mask dialog, hold Shift and go to Select > Select and Mask. This opens the classic dialog instead of the newer workspace.

View Mode

Start by changing the View Mode to “On White” to make the edge refinement adjustments easier to see.

View Mode on White.jpg

Also, set the Onion Skinning opacity to 100%.

Onion Skinning

Edge Detection

In the Edge Detection options enable the Smart Radius, to create a variable edge width around the edge of your selection.

This option works great for images that include both hair and straight edges. For example, hair requires a larger refinement area than the shoulders where the edge is straight. The Smart Radius helps create that variable width in the refinement area.

Then increase the Radius which determines the size of the selection border in which the edge refinement occurs.

Smart Radius

Global Refinements

The following adjustments may vary depending on your photo. But in most cases, you will need to make Global Refinements to improve your selection.

Consider using the Smooth slider, so, that your edges are not jaggy. Also, adding Contrast and Contracting the selection inward can help in removing edge halos.

Global Refinements

Refine Edge Tool

If you have hair on your image, then select the Refine Edge Tool, and paint directly over the flyaway hairs in your photo.

Refine Edge on Flyaway Hair

Photoshop will do its best to extract the flyaway hairs from your background. Unfortunately, you will not get good results unless you are working with a solid color background.

Again, don’t spend too much time making the perfect selection. You don’t want to spend too much time refining areas that are not going to be needed.

When you’re done refining your selection, press OK.

The Marching Ants should still be active.

Marching Ants Around Model

Step 07 – Create a Group To Hold The Text Layers

Create a group by clicking on the New Group icon in the Layers Panel.

Rename the group “Text.” You can change the name of any layer or group by double-clicking on the name.

Drag your Text Layer into the new group.

"Text" Group

Step 08 –Apply the Selection As a Mask To The Group

Layer Masks make the text behind an object effect possible. A Layer Maks allows you to selectively show or hide pixels of a layer or a group.

In this tutorial, we’re going to apply the Layer Mask to the group and not the Text Layer. Having the mask on the group allows you to have multiple layers controlled by one Layer Mask.

So any layer that you throw into the text group will appear as if it were behind your selected object.

In this tutorial, we are only going to work with one text layer, but using Layer Masks in groups is an important technique to learn.

With the selection active, and the group selected, hold Alt (Windows) or Option (macOS) and click on the Layer Mask icon to create an inverted Layer Mask.

Make a Layer Mask on The Text Group

Step 09 – Refine The Layer Mask

Now that you can see how the text layer affects the portrait, you can spend some time fine-tuning the mask in areas that require it.

Mask Issues

Click on the Group Layer Mask and select the Brush Tool. You can paint with black or white to hide or reveal pixels.

Remember that you can toggle between Foreground and Background colors by pressing X (Windows) or X (macOS).

Step 10 – Paint in Details

In some areas, the text will hide detail that it is too difficult to mask, like the flyaway hairs around the model’s head.

Instead of spending time trying to mask those hair strands, you can paint in the detail from scratch, much like in the Advanced Hair Masking tutorial.

Start by creating a new layer and rename it “Hair.” Then drag the Hair layer inside of the Text group.

Hair Layer

Select the Brush Tool by Pressing B on the Keyboard. Then in the Options Bar click on the Brush Settings icon.

Brush Setting Icon

In the Brush Settings Panel, bring the Spacing down to 1% and the Size to 1 pixel.

Brush Settings

You can temporarily enable the Eyedropper Tool to select colors by holding Alt (Windows) or Option (macOS). Then click anywhere on the canvas to choose a color. Chose a color that is similar to the flyaway hair.

Select Color

Then paint hair strands using that color. Do the same with several other colors found in the hair. Use the brightest and darkest colors to make the flyaway hair seem more realistic.

Step 11 – Match The Depth of Field

Notice that the flyaway hairs that you painted are sharp, while the hairs in the photo are blurry.

Flyaway Hair - Sharp

The depth of field of the photo is causing the blurriness, and you need to match this blurriness to make your flyaway hairs more realistic.

You can learn more shallow depth of field techniques in this tutorial on how to blur backgrounds in Photoshop.

You can blur your Hair layer by going to Filter > Blur > Gaussian Blur.

Gaussian Blur Dialog Box

With the Radius input box active, you can press the up and down keys on the keyboard to fine-tune the blur by 0.1 pixels.

Flyaway Hair - Blurry

The detail on these flyaway hairs is so small that in the final image they will not be noticeable.

In your image, you may need to work on more details. But always look at your 100% view to make sure that the details you are working on are noticeable.

This is what my final image looks like:

Final Image

Frequently Asked Questions

How do I place text behind a person in Photoshop?

Select the person with Select Subject, refine the selection in Select and Mask, then apply it as an inverted Layer Mask on a group that holds your Text Layer. The mask hides the part of the text that overlaps the person, so the text appears to sit behind them.

Why apply the Layer Mask to a group instead of the Text Layer?

A mask on a group controls every layer inside it at once. That way you can add more layers, like hand-painted hair, and they all follow the same mask without extra work.

What is an inverted Layer Mask, and how do I create one?

An inverted Layer Mask shows the opposite of what a normal mask would show. Hold Alt (Windows) or Option (macOS) and click the Layer Mask icon with a selection active to create one in a single step.

Why does the hair look cut off where it crosses the text?

A selection mask cannot capture fine, single-pixel hair strands, so thin flyaway hairs get clipped along with the background. Paint them back in by hand with a small brush loaded with colors sampled from the hair.

Why blur the hair I paint back in?

The camera’s depth of field blurs the original hair slightly, so hair painted at full sharpness looks pasted on. Apply Gaussian Blur to the painted layer until it matches the blur in the rest of the photo.

Does this technique work in Photoshop CS6?

Yes, though CS6 uses the older Refine Edge dialog instead of the Select and Mask workspace, and it does not have Select Subject. You will need to drag a selection manually with the Quick Selection Tool.

Can I still edit the text after the effect is applied?

Yes. The Text Layer stays fully editable the whole time, because the illusion comes from a Layer Mask on the group, not from flattening or rasterizing the text.

What is the difference between this and placing text behind anything in Photoshop?

This tutorial focuses on a person, with extra steps for refining hair edges and matching depth of field. A companion tutorial covers a faster method that works on any object.

Conclusion

Placing text behind a person in Photoshop comes down to one Layer Mask on a group, refined with Select and Mask and finished with a little hand-painted hair.

The result holds up because the text stays editable and the painted details match the photo’s own depth of field.

If you want another editable text trick, try the see-through cutout text effect next, or watch the video above and comment on the video with any question.

Pro Training

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.

View the Course

Keep going

Next, learn how to create a hair or fur text effect for another way to blend letters into a photo.

Final Image

Drag the slider to see before and after

After: How To Place Text Behind an Object in Photoshop
Before: How To Place Text Behind an Object in Photoshop
Jesús Ramirez

About the author

Jesús Ramirez

Jesús Ramirez is a graphic designer and the founder of the Photoshop Training Channel, which he started in 2012 and has grown past two million YouTube subscribers. He has taught at Adobe MAX, Adobe Summit, and Photoshop World, teaches courses for CreativeLive and Pluralsight, and was one of five artists chosen for Adobe Stock's Make a Masterpiece campaign. His Photoshop templates shipped inside Photoshop CC 2018.

More about Jesús Ramirez

Similar Posts

4 Comments

  1. Excellent! Any newcomer can get back to that thing he missed on how to get where, when.

    I’d do this differently though. Why not just copy the subject and place it on a layer above the type. Then you could turn off the type layer and find where you need that hair painted in.

    I learned what the contrast adjustment does under Global Refinements. I also learned that .3 pixels is right for blurring hair strands.

    There’s only one missing, but it’s very simple: I don’t have good finger dexterity. I turn smoothing on and set it to 36%.

    All in all, much better than a tube. The newcomer can get back to where he forgot how to get to a control. Is also faster to read than wait for a video. Good job! Well done!

Comments are closed.