What’s the importance of text-to-code ratio?

Still have a question, spotted an error, or have a better explanation or a source we should cite?

Your email's text-to-code ratio matters because spam filters scrutinize the balance between readable content and HTML markup. When you've got tons of code but very little visible text, filters get suspicious. It looks like you're either hiding content in images (a classic spam tactic) or using overly complex templates to obscure something.

But There's no magic number, but think of it this way: if your email makes sense only with images enabled, you probably have a ratio problem. Image-only emails scream bulk sending. Heavy template code for a simple announcement (thousands of lines of HTML) looks overengineered and sketchy. The fix isn't to pad with hidden text. filters catch that. It's to write emails that have real, readable substance.

Test this yourself: disable images in your email client and read your draft. If it falls apart, you've found your problem. Well-designed templates do layout work efficiently. They don't need thousands of lines to say something simple. Balancing images and text is the practical skill here. Your ratio improves naturally when you focus on actual substance instead of chasing a number.

Contributors

Who worked on this answer

Every name links to their profile. Every company links to their site. Real people, real accountability.

Ask an AI · tailored to your setup

Get a ratio audit for your template

I read about text-to-code ratios affecting deliverability. Help me figure out if mine's a problem and what to fix. My setup: - Email platform/ESP: Mailchimp, SendGrid, HubSpot, etc. - Type: newsletter, promotional, transactional, automated - Design: drag-and-drop builder, custom HTML, template - Images: mostly images, balanced, mostly text - Current issue: [not sure if ratio's the problem, emails look fine but getting low opens] Specific help I need: 1. Is my template's text-to-code ratio likely the issue? 2. What's a good target ratio for my email type? 3. Which specific parts of my template should I simplify? 4. How do I test this myself before sending?

Edit the yellow boxes, then send to the AI of your choice.