Add Personalized Images to Mailchimp Emails
This guide shows you how to insert personalized images into your Mailchimp email campaigns, so each subscriber sees an image tailored to them—like their name on a birthday graphic or a product photo based on their preferences. You’ll need a Mailchimp account with an audience that has custom fields or tags you can use for personalization, and an image hosting solution (like your own website or a free image host) because Mailchimp doesn’t store the personalized image files themselves.
What You’ll Need
- A Mailchimp account with an audience that has at least one custom field or tag (e.g., first name, favorite color, member tier).
- An image file for each variation you want to show (e.g., one image for “VIP” members, one for “Standard”).
- A way to host those images online—Mailchimp’s own content manager can host the base image, but for dynamic personalization you’ll need direct URLs (from your website, Cloudinary, Imgur, etc.).
- Basic understanding of Mailchimp’s merge tags (like *|FNAME|*) and conditional tags.
Step-by-Step
- Prepare your images and host them. Create your image variations and upload them to a hosting service that gives you a direct, public URL for each file (ending in .jpg, .png, etc.). Note each URL—you’ll need them in the email.
- Create or edit your campaign. In Mailchimp, go to Campaigns and click Create Campaign or open an existing email. Choose your audience and design the email using the classic builder or the new builder (steps are similar).
- Add an image block. Drag an Image content block into your layout where you want the personalized image to appear.
- Open the image settings. Click on the image block, then click the Edit (pencil) icon. In the pop-up, you’ll see fields for Image URL and Alt Text.
- Insert the personalization code in the Image URL field. This is the core step. Instead of a static URL, you’ll use a conditional merge tag that tells Mailchimp to display a different image based on a field’s value. For example, if you have a custom field called Member Tier with values “VIP” and “Standard”, you’d paste something like this into the URL field:
*|IF:MEMBER_TIER == "VIP"|*https://yourdomain.com/images/vip-banner.jpg*|ELSE:|*https://yourdomain.com/images/standard-banner.jpg*|END:IF|*
ReplaceMEMBER_TIERwith your actual field name (use the merge tag name, which is usually uppercase). The URL must be enclosed in the conditional tags exactly as shown—no spaces around the equals sign. - Set a fallback image (optional but recommended). If the field is empty or doesn’t match any condition, the ELSE part will show. You can also use a default image by adding a separate condition or using the *|IF:…|* structure with an empty else. To ensure a fallback, make the ELSE URL a generic image.
- Test with sample data. Use the Preview and Send Test features. In the test email, you can enter a specific subscriber’s data or use the “Test with sample data” option to see how different merge tag values render.
- Send or schedule your campaign. Once you’ve verified the images appear correctly for different field values, you can send the campaign as usual.
Common Mistakes
- Using the wrong merge tag name. The tag in your conditional must exactly match the merge tag name (e.g., *|MEMBER_TIER|*). Check under Audience → Manage Audience → Settings → Audience fields and merge tags.
- Spaces in the conditional syntax. Mailchimp’s conditional tags are picky. There should be no spaces around the equals sign:
*|IF:MEMBER_TIER == "VIP"|*is correct;*|IF:MEMBER_TIER=="VIP"|*may also work, but avoid extra spaces. - Not using direct image URLs. Some hosting services provide a page URL, not a direct image link. The URL must end with an image extension (.jpg, .png, etc.) and work when pasted directly into a browser.
- Forgetting the ELSE clause. If you don’t include an ELSE, subscribers whose field doesn’t match any condition will see a broken image icon.
- Using the wrong field type. The conditional works best with text or dropdown fields. If you use a number field, the syntax is different (e.g., *|IF:POINTS >= 100|*).
Tips
- Keep image file sizes small. Personalized images are loaded from external URLs; large files slow down email loading and may be blocked by some email clients.
- Use HTTPS URLs. Most modern email clients block HTTP images or show a warning. Ensure your hosting supports HTTPS.
- Test with multiple field values. Send yourself a test email and manually change the merge tag values in the test recipient’s profile to see all variations.
- Consider using a service like Cloudinary or Imgix that allows dynamic image transformation—you can create one base image and use URL parameters to change text or colors based on data.
- Always provide alt text. If images are blocked, the alt text will show. Use the alt text field to describe the image or include the personalized text.
Troubleshooting
- Image doesn’t change for different subscribers. Check that the merge tag name in the conditional matches exactly. Also, ensure the field is populated for the test subscribers. In the preview, use the “Preview with subscriber data” option and select a subscriber with a known field value.
- Broken image icon in test email. Click the image in the test email and copy the URL. Paste it into a browser—if it doesn’t load, the URL is incorrect or the file is not publicly accessible. Make sure the hosting service allows hotlinking (some free hosts block it).
- Conditional syntax appears as text. If you see the raw code like
*|IF:MEMBER_TIER == "VIP"|*in the email, you likely placed the code in the wrong field (e.g., in the alt text instead of the URL). Also, ensure you’re using the classic builder—the new builder may handle merge tags differently. - All subscribers see the same image. Double-check that the field you’re testing with actually has different values. Also, if you’re using a checkbox field, the syntax is different—you might need to use *|IF:MEMBER_TIER|* (without the == “value”) to check if it’s checked.
- Email client blocks the image. Even with HTTPS, some clients (like Outlook) may block external images by default. Encourage subscribers to enable images, or consider using Mailchimp’s built-in content manager for static images (but that won’t allow personalization).
Frequently Asked Questions
Can I use a personalized image as the email’s featured image?
Yes, the same method works for any image block, including the featured image at the top of your email. Just apply the conditional URL in that block’s settings.
Does this work with the new Mailchimp email builder?
Yes, but the interface may differ slightly. Look for the image block’s settings and locate the URL field—the conditional merge tag syntax works the same.
Can I personalize based on the subscriber’s location or behavior?
Yes, if you have custom fields for location (e.g., country) or behavioral data (e.g., purchase history) stored in your audience, you can use those in the conditional logic.
What if I have more than two variations?
You can nest multiple IF/ELSE IF statements, but it gets complex. A simpler approach is to use a single conditional that checks for each value, like *|IF:TIER == "VIP"|*URL1*|ELSE:|*|IF:TIER == "Gold"|*URL2*|ELSE:|*URL3*|END:IF|*|END:IF|*. Alternatively, use a service that generates the image URL dynamically based on a parameter.
Will personalized images affect email deliverability?
No, as long as the images are hosted on a reputable domain and load quickly, they shouldn’t hurt deliverability. However, if the images are blocked by the email client, the email may appear broken, which could affect engagement.
Can I use this for dynamic content like a countdown timer?
Yes, you can use the same technique to display a countdown image that changes based on the send time, but it requires generating the image dynamically on your server. For a simpler countdown, consider using a service like CountdownMail.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.