ogdynamic

How to Add Personalized Images to Klaviyo Emails (Step-by-Step)

A step-by-step tutorial: map Klaviyo template tags to a dynamic image URL and give every profile their own banner through the dynamic image block — no design tools or code required.

Mehedi HasanMehedi HasanEmail Marketing8 min read
How to Add Personalized Images to Klaviyo Emails (Step-by-Step)

Klaviyo is a personalization machine — subject lines, body copy, discount codes, even predicted metrics all bend to each profile's data through personalization tags. Except the part people see first: the image. Template tags work brilliantly in text, but a picture is baked into pixels, so every profile in your campaign sees the same banner.

Klaviyo quietly solves this with a feature most senders never open: the dynamic image block. Instead of uploading a static file, it consumes a URL that contains template tags — {{ person.first_name }}, a custom property, anything on the profile. Klaviyo parses the tags inside the link and rewrites them per profile at send time, and the image renders with each person's data baked in. One banner in your template, a thousand variations in the inbox.

In this tutorial we'll build a personalized offer email end to end, in eight steps: design the banner in ogdynamic, map your fields to Klaviyo's template tags, paste the URL into the dynamic image block, and preview it as a real profile. It takes about fifteen minutes and zero code.

What You Need

  • An ogdynamic account with a canvas — any size works, but 1200×628 is the sweet spot for email banners
  • A Klaviyo account with profiles that have the properties worth personalizing (first name, city, plan, points balance…)
  • A Klaviyo campaign or template you can edit in the email builder

Step 1: Design Your Banner

Designing the Email Personalized Offer — Light banner in the ogdynamic canvas editor, with dynamic fields name, product, headline, message, cta, offer, and deadline

Open the ogdynamic Studio and design the image exactly as you want it to appear in the inbox. In this example we're building an "Email Personalized Offer — Light" banner: a greeting, a product pill, a headline with a message, a call-to-action button, and an offer badge.

Before you get too far in, decide which text should change per profile and toggle those layers to dynamic. In the layers panel above, each personalized layer carries a green field badge — name, product, headline, message, cta, offer, deadline. The greeting layer's field is named name — that's the slot each profile's own name will drop into. Every dynamic layer gets:

  • a parameter name (name) that appears in the image URL
  • a default value ("Jhon") that renders whenever no value is provided

That default is more important than it looks. It's what shows in the builder preview, in archived campaigns, and for any profile whose property is empty — so make it look intentional, not like a placeholder.

Step 2: Open the Canvas Integrations Page

Clicking the Integrations button on the Email Personalized Offer canvas card in My Studio

Back in ogdynamic, head to My Studio and find your canvas card. Click the Integrations button on the card (next to "Copy link").

This opens the canvas's integrations page, where the bridge between your design and Klaviyo happens.

Step 3: Map Fields to Klaviyo Template Tags and Copy the Image URL

Mapping dynamic fields to Klaviyo template tags like {{ person.first_name }} and copying the generated image URL

Open the Klaviyo tab (①). Every dynamic field from your canvas shows up with an input for its template tag — in our example, the greeting field is mapped to {{ person.first_name|default:'there' }}, plus fields for the product, headline, message, CTA, offer, and deadline. Paste the tags you want, one per field ②. The live preview re-renders instantly with the raw tags in place, so you can confirm the mapping before touching Klaviyo.

Then scroll down to the Personalize images per profile section:

  • Clickable link (optional) — a URL wrapped around the whole image, so clicking the banner in the email opens your landing page
  • Image URL — the dynamic URL with your template tags in the query string, e.g. https://cdn.ogdynamic.com/c/01m7s…?name={{ person.first_name|default:'there' }}
  • HTML — a ready-made, email-safe table snippet containing that URL

Copy the Image URL ③ — that's the piece Klaviyo's dynamic image block needs. (The HTML snippet is there for the custom HTML block route, if you'd rather own the markup.)

One caveat about the clickable link: it only takes effect inside the HTML snippet, where it wraps the whole image in an anchor. Klaviyo's dynamic image block consumes the raw URL and can't carry that wrapper — so on the Image URL route (what we're doing here), set where the image links on the image block itself in Klaviyo.

One detail worth noticing: the tags inside the URL keep their spaces — {{ person.first_name }} is the tag itself, and Klaviyo rewrites the whole tag at send time before anything fetches the URL. The callout under the Image URL on this page reminds you where the link goes, and that the block styles like any image afterwards: add a border, round the corners, and more.

Step 4: Add an Image Block to Your Email

Selecting the Image content block in the Klaviyo email builder

Now open your campaign or template in the Klaviyo email builder. From the Add content panel's Blocks grid, drag the Image block into your layout where the banner should appear.

Step 5: Open the Image Picker

Clicking Select image in the Klaviyo image block styles panel

With the block selected, the left panel switches to the image block's Styles — an "Upload an image" card with a Select image button. Click it to open Klaviyo's image picker.

Step 6: Switch to Dynamic Image and Paste the URL

Pasting the ogdynamic URL into the Dynamic variable or dynamic URL field on Klaviyo's Dynamic image tab

The picker opens with six tabs: Image library, Upload image, Import URL, Dynamic image, Product images, Social. Click Dynamic image (①) — that's the tab built exactly for this.

Paste your URL from step 3 into the Dynamic variable or dynamic URL field (②) and hit Save (③). Klaviyo accepts any URL that contains template tags: at send time it parses the tags inside the link, substitutes each profile's data, and the image renders per recipient.

Step 7: Check the Block, then Preview

The dynamic image block in place with a Replace button, with the Preview button highlighted

Back in the builder, the block now holds your dynamic image — the Styles panel shows the URL with a Replace button, and the canvas placeholder carries the dynamic-image marker. In the builder itself the image may show as a placeholder: the editor doesn't know who "you" are yet, so there's no profile data to render with.

Style the block like any image: width, alignment, even a border or rounded corners. Then click Preview in the top bar.

Step 8: Preview as a Real Profile

Klaviyo preview mode showing the personalized image rendered with a real profile's first name

Preview mode is where the magic shows. On the right, select a profile for the preview — Klaviyo substitutes that profile's data everywhere in the email, including inside your image URL, and the banner re-renders with their name in it.

A few things worth checking in this final screen:

  • The image actually personalizes. If you still see the literal tag in the preview, re-check the mapping in step 3 — once a profile is selected, the image should render with their data.
  • Copy tags from Klaviyo itself. Hover any profile property in the preview and Klaviyo offers to copy the exact tag (like {{ person.first_name|default:'' }}) — handy for custom properties whose spelling you might guess wrong.
  • Send yourself a test. The inbox is the final judge of how the banner sits next to your copy.

Make Every Send Feel Handwritten

That's the whole setup: design once, map your template tags, paste one URL. From here on, every campaign you send with this template renders fresh images per profile — new subscribers, updated properties, and seasonal tweaks included without you exporting anything.

Want the same technique on other platforms? We have step-by-step guides for Mailchimp and MailerLite, or browse the Klaviyo integration page for the overview. Or skip the theory: start a canvas and map your first template tag in minutes.

FAQ

Can Klaviyo personalize images per profile natively?

Not with an uploaded image — a static file can't contain template tags. The native path is the dynamic image block: give it a URL that contains template tags, and Klaviyo substitutes profile data into the link per recipient at send time. ogdynamic generates exactly that URL.

Do template tags work inside an image URL in Klaviyo?

Yes — that's what the dynamic image tab is for. Klaviyo parses template tags anywhere in the "Dynamic variable or dynamic URL" value, including the query string of an <img> source.

Why does my image show the template tag instead of the name?

You're looking at the builder canvas, which has no profile data. Use the Preview button and select a profile for the preview — the image re-renders with that profile's data — or send yourself a test email.

What happens if a profile property is empty?

Two fallbacks kick in. Klaviyo's default filter inside the tag (e.g. {{ person.first_name|default:'there' }}) substitutes fallback text first, and ogdynamic renders whatever value lands in the URL. Design your canvas layer's default so the image still looks intentional for profiles with missing data.

Which template tags should I use in the image URL?

The profile properties you want in the image — built-in ones like {{ person.first_name }} as well as custom properties. The safest source is Klaviyo itself: hover a property in preview mode and use the copy-variable tooltip, so the tag matches your account exactly.

How do I make the personalized image clickable in Klaviyo?

Set the link on the image block itself in Klaviyo — the block wraps the rendered image for you. The clickable link on ogdynamic's integrations tab is only applied inside our HTML snippet, which wraps the image in an <a>; the bare Image URL can't carry that wrapper.

Filed under

Mehedi Hasan

Written by

Writer and developer covering OG images, dynamic rendering, and email personalization.