Free tool · Adobe Journey Optimizer

Email script converter to Adobe Journey Optimizer

Paste an email written for Braze, Salesforce Marketing Cloud, Marketo, HubSpot or Adobe Campaign. See a draft in Journey Optimizer's personalisation syntax beside it, and a line-by-line list of what was converted and what was not.

For marketing operations teams and agencies sizing a move to Journey Optimizer. It runs in your browser: nothing you paste is sent to our server or stored, and no AI is used. The draft was not run in a Journey Optimizer sandbox and must be tested before sending.

Your email or snippet

The sample is synthetic: a made-up email with parts that convert and parts that do not. It was not taken from a real account.

Want this fixed for you?

We can convert the lines this page leaves, map the fields with your team and hand back emails for you to test in your own Journey Optimizer. Tell us how many emails and which tool they come from.

Request a quoteWrite to us

What it does and does not do

A rule-based draft, not a tested email

What it reads

One email or snippet, pasted or picked as a file, up to 200,000 bytes. You choose the tool it was written for, or the page works it out: Braze Liquid, Salesforce Marketing Cloud AMPscript, Marketo tokens, Marketo email scripts (Velocity), HubSpot HubL or Adobe Campaign fields. It reads the text in your browser.

What you get

A draft in Journey Optimizer's personalisation syntax beside your original. A list with one line per script part: converted, converted with a note, or not converted and why. A mapping table where you type the path of each field in your own XDM schema. The draft and the notes can be downloaded.

What it does not do

It does not run the draft, and it does not know your schema. It does not convert anything it cannot match to a form on Adobe's Journey Optimizer pages: that part stays exactly as you wrote it and is listed. It does not use AI. It does not create fragments, journeys, audiences or unsubscribe links. The HTML around the script is not changed at all.

The draft. This is a draft. It was not run in a Journey Optimizer sandbox. A line marked Converted follows the syntax on Adobe's pages and nothing more. Test every message with real test profiles in Journey Optimizer before you send it.

Three levels. Error: Not converted. The original text is still in the draft and Journey Optimizer will not accept it. Rewrite it by hand. Warning: Converted, but the two tools may behave differently here, or Adobe's pages leave a point open. Check it. Note: Converted. Something is left for you to do, such as mapping a field to your schema.

Free use. The converter is free for one email of up to 200,000 bytes at a time, with no account. A single tag longer than 2,000 characters is left as it is. Both limits are our own, not Adobe's. Questions: contact us

Exactly what each source is covered for

Anything not in the left column is left as it is and listed.

Braze Liquid: convertedLeft as it is
  • {{${name}}} and {{custom_attribute.${name}}} to a profile attribute to map
  • {{event_properties.${name}}}, {{api_trigger_properties.${name}}} and {{context.${name}}} to an event attribute to map
  • | default: 'text' directly after an attribute to the ?: fallback
  • the filters upcase, downcase, strip, lstrip, rstrip, size, append, prepend and md5
  • | date with the strftime codes %Y %y %m %B %b %d %j %H %I %M %S %p %A %a, and "now" | date
  • if, elsif, else, endif, unless and endunless with ==, !=, >, <, >=, <=, contains, and a chain of only and or only or
  • == blank, == null, == nil and == empty to isEmpty(), and != to isNotEmpty()
  • for item in list ... endfor to {{#each list as |item|}}
  • assign name = value to {% let %}
  • capitalize, replace, truncate, split, join, url_encode, the maths filters and every other filter
  • a condition that mixes and with or, or that tests a value with no comparison
  • case / when, capture, raw, comment, cycle, tablerow, break and continue
  • for loops with limit, offset, reversed or a range, forloop values, and else inside for
  • Content Blocks, Connected Content, abort_message and subscription links
  • campaign, canvas, card, app, device and subscription state values
Salesforce Marketing Cloud AMPscript: convertedLeft as it is
  • %%Name%% personalisation strings and [Attribute Name] to a profile attribute to map
  • %%=v(@name)=%% and Output(...) to {{name}} or {%= ... %}
  • VAR (dropped) and SET @name = value to {% let %}
  • IF ... THEN, ELSEIF, ELSE and ENDIF with ==, !=, >, <, >=, <= and a chain of only AND or only OR
  • Empty() and NOT Empty() to isEmpty() and isNotEmpty()
  • Lowercase, Uppercase, ProperCase, Concat and Now()
  • all three ways of writing AMPscript: inline, block and script tag
  • every other function, including IIF, Lookup, LookupRows, AttributeValue, Replace, Trim, Substring, Format, FormatDate, RedirectTo and ContentBlockByKey
  • FOR ... NEXT loops
  • NOT in front of a comparison, parentheses in a condition, and AND mixed with OR
  • a SET whose value is more than one plain value or one function call
Marketo tokens in email HTML: convertedLeft as it is
  • {{lead.Field Name}} and {{company.Field Name}} to a profile attribute to map
  • {{my. }}, {{system. }}, {{campaign. }}, {{program. }}, {{trigger. }} and {{member. }} tokens
  • a token with a default value or another option after a colon
Marketo email script (Velocity): convertedLeft as it is
  • $name.Field, ${name.Field} and $!name.Field to a profile attribute to map
  • #set($name = value) with a text, a number or a reference
  • #if, #elseif, #else and #end with ==, >, <, >=, <=, eq, ne, gt, ge, lt, le and a chain of only && or only ||
  • #foreach($item in $list) ... #end to {{#each list as |item|}}
  • method calls and Velocity tools such as $date, $math and $convert
  • the != sign, ! and not, parentheses in a condition, and a value tested with no comparison
  • $foreach.count and the other loop values
  • a text in double quotes that holds a $reference, arithmetic, #macro, #parse, #include and comments
HubSpot HubL: convertedLeft as it is
  • {{ contact.property }} and other dotted names to a profile attribute to map
  • |default("text") directly after an attribute to the ?: fallback
  • the filters upper, lower, trim, title, length and urlencode
  • if, elif, else and endif with ==, !=, >, <, >=, <= and a chain of only and or only or
  • for item in list ... endfor to {{#each list as |item|}}
  • set name = value to {% let %}
  • every other filter, including format_datetime, replace and truncate
  • not, is tests, the ~ operator, arithmetic and parentheses
  • functions, macros, module and other tags, loop values and {# comments #}
Adobe Campaign <%= %> fields: convertedLeft as it is
  • <%= table.field %> to a profile attribute to map
  • <% ... %> script blocks, which are JavaScript
  • <%= ... %> with anything other than a plain field
  • <%@ include ... %> personalisation blocks

Sources

The rules it follows, and where they are stated

Every statement below was read on the page linked beside it and checked 2 Dec 2026.

Not confirmed by Adobe's documentation

The pages do not settle these points. This is how the converter behaves there. None of it was tested in Journey Optimizer.

  • Nothing here was run in a Journey Optimizer sandbox. We have none. The draft follows the syntax on Adobe's pages. Whether Journey Optimizer accepts and renders it with your schema and data was not tested.
  • Salesforce's AMPscript reference on developer.salesforce.com refused automated reading on 2 Dec 2026. The AMPscript rules here rest on Salesforce's Trailhead units only. Functions that those units do not explain (for example IIF, Lookup, AttributeValue, Replace, Trim, Substring, FormatDate patterns, Format) are left as they are.
  • Adobe's pages do not say whether titleCase lower-cases the other letters of a word. Salesforce's unit says only that ProperCase capitalises the first letter of each word. The two may differ on text such as McDONALD.
  • Adobe states the ?: fallback for an attribute that is empty or null. Liquid's default also replaces false. HubL's default replaces only an undefined value unless a second argument is given. The draft uses ?: and marks it to check.
  • Adobe does not say how isEmpty treats a null attribute. Braze's == blank and == null and AMPscript's Empty() are converted to isEmpty() and marked to check.
  • Adobe's operators page, as read, shows and and or but no not operator, no parentheses and no rule for mixing and with or. Conditions that need any of these are left as they are.
  • Adobe's helpers page shows a variable set with let before a block and changed inside it. It does not say whether a variable first set inside {%#if%} can be read after {%/if%}. Such lines are marked to check.
  • Adobe's replace function does not say whether it replaces the first match or all of them, and replaceAll takes a regular expression. Liquid's replace filters are left as they are.
  • Adobe's helpers page says {{@index}} returns the position in an each loop but not whether it starts at 0 or 1. Liquid's forloop values and Velocity's $foreach values are left as they are.
  • Whether {%= ... %} HTML-escapes its result is not stated. {{...}} does. Braze Liquid does not escape by default, so a value that holds HTML may render differently.
  • Marketo's default value syntax for a token is shown only in a picture on Adobe's page, so this tool could not read it. A token with :default= is left as it is.
  • Adobe's Marketo page does not show how a lead field is written in a script. Any $name.Field that is not a script variable is treated as a field to map.
  • The Velocity guide, as read, lists the text form ne but not the != sign. A condition with != is left as it is.
  • Braze's url_encode, HubL's format_datetime patterns and Adobe Campaign's JavaScript blocks were not matched to a documented Journey Optimizer function. They are left as they are.
  • The 200,000 byte limit and the 2,000 character limit for one tag are this tool's own guards. They are not limits of Journey Optimizer.

Questions

Common questions

Is the converted email ready to send from Journey Optimizer?

No. It is a draft. It was not run in a Journey Optimizer sandbox, because we have none. Each converted line follows the syntax on Adobe's documentation pages and nothing more. Fill in the mapping table, rewrite the lines marked Not converted, then test the message in Journey Optimizer with real test profiles before you send it.

Why are some lines not converted?

Because the page writes only what Adobe's Journey Optimizer pages state. If a filter, function or tag has no documented match, or the match is not exact, it is left exactly as you wrote it and listed with the reason. Examples are Liquid's capitalize, AMPscript lookups, loops with a counter and JavaScript in Adobe Campaign. A wrong guess in a live email is worse than a line you rewrite by hand.

What do I type in the mapping table?

The path of the field in your own XDM schema, such as profile.person.name.firstName. The other tool's field names do not exist in Journey Optimizer, so the draft first holds a placeholder that starts with profile.MAP_ME_. When you type a path, the draft and the list update. The page checks only that the path is made of names and dots. It cannot check that the field exists in your schema.

Is my email sent to your server?

No. The conversion runs in your browser. The text you paste or the file you pick is not uploaded and not stored, and it is gone when you close the tab. The page counts that the tool was used, without the text. No AI model sees it.

Does Adobe have its own converter?

Adobe documents a migration workspace inside Journey Optimizer that is in Limited Availability, and a Script Builder for Marketo scripts in Journey Optimizer B2B Edition that is in limited beta. Both need access to the product. This page needs no Adobe access and runs before you have a contract. It is not a replacement for either.

Which AMPscript functions are covered?

Only the ones Salesforce's Trailhead units explain: Lowercase, Uppercase, ProperCase, Concat, Empty, Now and v, with VAR, SET, IF, ELSEIF, ELSE and ENDIF. Salesforce's function reference refused automated reading on the day this page was checked, so every other function is left as it is and listed.

Surge Migrate is not affiliated with Adobe and is not an Adobe partner. Braze, Salesforce, Marketo, HubSpot and the other names are trademarks of their owners and are used only to say which syntax is read.