Uploaded November 2022 | Updated November 2026, 13 hours ago
After Effects still has **NO real Auto-Fit Text** feature… so I built one.
In this tutorial, you’ll learn how to make **text automatically resize to stay inside a shape** (circle/box) — so your titles never overflow again, even when you change the wording.
You’ll see **2 ways** to do it:
✅ **Fastest method** using **Smart Resizer** (1 click)
✅ **Free method** using **After Effects Expressions** (`sourceRectAtTime`) so you can recreate the same “responsive text” behavior without plugins.
Perfect for **motion graphics titles**, **lower thirds**, **UI-style text containers**, and any template where text keeps changing.
──────────────────────────────
📁 Free After Effects Project File:
[ukramedia.com/?add-to-cart=361407](https://ukramedia.com/?add-to-cart=361407)
🔧 Smart Resizer (Tool Used):
[ukramedia.com/SmartResizer](https://ukramedia.com/SmartResizer)
──────────────────────────────
⏱ Chapters
00:00 What we’re building (Auto-Fit Text demo)
00:19 Method 1 — Smart Resizer (fastest setup)
01:09 Add padding using Margin Width
01:37 Method 2 — Expressions (no tools required)
03:29 Fix the “tiny text gets oversized” issue (cap scale at 100%)
04:42 Finished setup
──────────────────────────────
🧠 Expression Used (Auto-Fit Text to Width)
Apply this to: Text Layer → Scale
```jsx
sizeLimit = 400; // max width in pixels before shrinking
textWidth = sourceRectAtTime(time, false).width;
scaleLimit = (sizeLimit / textWidth) * 100;
fixedScale = Math.min(scaleLimit, 100);
[fixedScale, fixedScale]
```
Tip: Set `sizeLimit` close to your shape width (use a smaller number for padding).
──────────────────────────────
🔍 SEO Keywords
after effects auto fit text, auto resize text after effects, after effects responsive text, fit text to shape after effects, sourceRectAtTime width, after effects expressions tutorial, clamp scale expression, dynamic text box after effects, motion graphics titles, lower thirds after effects, text overflow fix after effects, responsive design after effects
#AfterEffects #MotionGraphics #AfterEffectsExpressions #VideoEditing
After Effects still has **NO real Auto-Fit Text** feature… so I built one.
In this tutorial, you’ll learn how to make **text automatically resize to stay inside a shape** (circle/box) — so your titles never overflow again, even when you change the wording.
You’ll see **2 ways** to do it:
✅ **Fastest method** using **Smart Resizer** (1 click)
✅ **Free method** using **After Effects Expressions** (`sourceRectAtTime`) so you can recreate the same “responsive text” behavior without plugins.
Perfect for **motion graphics titles**, **lower thirds**, **UI-style text containers**, and any template where text keeps changing.
──────────────────────────────
📁 Free After Effects Project File:
[ukramedia.com/?add-to-cart=361407](https://ukramedia.com/?add-to-cart=361407)
🔧 Smart Resizer (Tool Used):
[ukramedia.com/SmartResizer](https://ukramedia.com/SmartResizer)
──────────────────────────────
⏱ Chapters
00:00 What we’re building (Auto-Fit Text demo)
00:19 Method 1 — Smart Resizer (fastest setup)
01:09 Add padding using Margin Width
01:37 Method 2 — Expressions (no tools required)
03:29 Fix the “tiny text gets oversized” issue (cap scale at 100%)
04:42 Finished setup
──────────────────────────────
🧠 Expression Used (Auto-Fit Text to Width)
Apply this to: Text Layer → Scale
```jsx
sizeLimit = 400; // max width in pixels before shrinking
textWidth = sourceRectAtTime(time, false).width;
scaleLimit = (sizeLimit / textWidth) * 100;
fixedScale = Math.min(scaleLimit, 100);
[fixedScale, fixedScale]
```
Tip: Set `sizeLimit` close to your shape width (use a smaller number for padding).
──────────────────────────────
🔍 SEO Keywords
after effects auto fit text, auto resize text after effects, after effects responsive text, fit text to shape after effects, sourceRectAtTime width, after effects expressions tutorial, clamp scale expression, dynamic text box after effects, motion graphics titles, lower thirds after effects, text overflow fix after effects, responsive design after effects
#AfterEffects #MotionGraphics #AfterEffectsExpressions #VideoEditing










