My question is related to this one Illustrator: Auto-sized Text box with shaded background?

What I want is an auto-sized Text box with a black rectangle border. It should look like this:

Is it possible to do this in Illustrator?

  • Yes . You can after creation select the texbox and give it a stroke. And you can use textbox objects a inset. OR you can use the make square effect.
    – joojaa
    Jan 14, 2020 at 18:55

1 Answer 1


It's basically the exact same method in the question you linked to.
Merely apply a stroke rather than a fill.

  • Select the type object
  • Add a new stroke to it via the Appearance Panel. You must add a new stroke. This will not work on the default stroke for type characters.
  • With the stroke highlighted in the Appearance Panel, choose Effect > Convert to Shape > Rectangle and adjust the settings

enter image description here

The "box" will then auto-size to match the text.

enter image description here

If you want a filled rectangle rather than a stroke, it's the same basic steps. See here: Illustrator: Auto-sized Text box with shaded background?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.