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.
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.
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.
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: converted | Left as it is |
|---|---|
|
|
| Salesforce Marketing Cloud AMPscript: converted | Left as it is |
|---|---|
|
|
| Marketo tokens in email HTML: converted | Left as it is |
|---|---|
|
|
| Marketo email script (Velocity): converted | Left as it is |
|---|---|
|
|
| HubSpot HubL: converted | Left as it is |
|---|---|
|
|
| Adobe Campaign <%= %> fields: converted | Left as it is |
|---|---|
|
|
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.
- Journey Optimizer writes a profile attribute as {{profile.person.name.firstName}}, a function call as {%= upperCase(profile.person.name.firstName) %} and a condition as {%#if profile.loyalty.tier = "gold"%}...{%/if%}. The syntax is case sensitive. A string is written in double quotes. Adobe Journey Optimizer, Personalization syntax (updated 19 Oct 2026)
- Adobe says to always use {%#if%}, {%else if%}, {%else%} and {%/if%}, and that the {% if %} / {% elseif %} / {% endif %} form is not supported. {{...}} resolves variables and helpers only and does not evaluate functions. Adobe Journey Optimizer, Personalization syntax (updated 19 Oct 2026)
- Values written with {{...}} are HTML-escaped. Three braces, {{{...}}}, leave the value unescaped. The parser does not support a single unescaped backslash. Adobe Journey Optimizer, Personalization syntax (updated 19 Oct 2026)
- Equality is a single = sign. Adobe says == is a syntax error. The comparison is strongly typed: both sides must be the same type. Adobe Journey Optimizer, Personalization syntax (updated 19 Oct 2026)
- Some words are reserved (let, to, as, this, last, next, now, today, from, true, false, not and others) and must be escaped with backticks when used as a field or variable name. Adobe Journey Optimizer, Personalization syntax (updated 19 Oct 2026)
- The fallback value is written {%=profile.personalEmail.name.firstName ?: "there" %}. It is returned when the attribute is empty or null. Adobe Journey Optimizer, Helpers (updated 24 Nov 2026)
- The helpers page gives {%#unless condition%}...{%else%}...{%/unless%}, {{#each profile.products as |product|}}...{{/each}} and {% let variable = expression %} with {{variable}} to print it. Adobe Journey Optimizer, Helpers (updated 24 Nov 2026)
- The operators page gives and, or, =, !=, >, >=, < and <=. Adobe Journey Optimizer, Operators (updated 6 Oct 2026)
- The string functions page gives upperCase, lowerCase, titleCase (capitalises the first letter of each word), trim, leftTrim, rightTrim, length, concat, contains (case sensitive by default), isEmpty, isNotEmpty, md5 and urlEncode. Adobe Journey Optimizer, String functions (updated 6 Oct 2026)
- formatDate(datetime, format) takes a Java DateTimeFormatter pattern. The first argument must be a date-time field: a string field needs stringToDate() or toDateTime() first. getCurrentZonedDateTime() gives the current date and time. Adobe Journey Optimizer, Date time functions (updated 6 Oct 2026)
- In a DateTimeFormatter pattern, yyyy is the year, MM the month number, MMM and MMMM the short and full month name, dd the day, EEE and EEEE the short and full weekday, HH and hh the hour, mm the minute, ss the second, a the am or pm marker. Letters meant as plain text must be in single quotes. Oracle, Java 17 DateTimeFormatter, Patterns for Formatting and Parsing
- Braze writes a standard attribute as {{${first_name}}}, a custom attribute as {{custom_attribute.${name}}} and event data as {{event_properties.${name}}}, {{api_trigger_properties.${name}}} or {{context.${name}}}. Braze, Supported personalization tags
- Braze conditions use {% if %}, {% elsif %}, {% else %} and {% endif %}, and test for a missing value with == null or == blank. Braze, Conditional messaging logic
- Liquid's default filter shows its value when the input is nil, false or empty. Braze writes it {{${first_name} | default: 'there'}}. Liquid template language, default filter
- Liquid has ==, !=, >, <, >=, <=, or, and, and contains. Several and / or in one tag are checked from right to left, and parentheses are not allowed. Liquid template language, Operators
- Liquid's date filter: "The format for this syntax is the same as strftime." The word "now" or "today" stands for the current time. Liquid template language, date filter
- Braze lists the filters upcase, downcase, strip, lstrip, rstrip, append, prepend, size, md5, date and default among those it supports. Braze, Filters
- Braze: the default value shows for empty values, but not for blank values. Braze, Set default values
- Liquid has unless ... endunless as the reverse of if, and case / when. Liquid template language, Control flow
- Liquid loops are for item in list ... endfor, with limit, offset, reversed, ranges, an else for an empty list, break, continue and the forloop values. Liquid template language, Iteration
- In strftime, %Y is the year, %m the month, %B and %b the full and short month name, %d the day, %A and %a the full and short weekday, %H and %I the hour, %M the minute, %S the second, %p AM or PM. A - after the % removes the padding. Ruby, Formats for Dates and Times (strftime)
- Liquid's capitalize filter capitalises the first character of the string and lower-cases the rest. Journey Optimizer's pages list no function that does the same, so capitalize is not converted. Liquid template language, capitalize filter
- AMPscript is written inline as %%=LowerCase(FavoriteAnimal)=%%, as a block %%[ ... ]%% or in a script tag with runat=server and language=ampscript. Variable names begin with @, are declared with VAR and set with SET. It has == and != with the modifiers AND, OR and NOT. It is not case sensitive. Salesforce Trailhead, Review AMPscript Basics
- AMPscript conditions are IF ... THEN, ELSEIF ... THEN, ELSE and ENDIF. A loop is FOR ... DO with NEXT. Output(v(@text)) prints a variable. Salesforce Trailhead, Explore AMPscript
- Salesforce's Trailhead shows %%FirstName%% as a personalisation string, ProperCase (capitalises the first letter of each word), Uppercase, Lowercase, Concat, Empty (true if a value is empty or null), Now() and comments written /* ... */. Salesforce Trailhead, Write AMPscript
- Salesforce's Trailhead shows SET @firstName = [First-Name], IF Empty(@firstName) THEN SET ... ENDIF and %%=v(@expDate)=%% to print a variable. Salesforce Trailhead, Personalize a Birthday Email
- A Marketo token is wrapped in double curly braces with a prefix for its type: lead., Company., campaign., system., trigger., program., my. and member. Adobe Marketo Engage, Tokens Overview (updated 7 Oct 2026)
- Marketo email scripts are Velocity. Adobe's page shows #set($variable = "value"), ${variable} and $!variable, and says Velocity provides if / else, for and foreach. Adobe Marketo Engage, Email Scripting (updated 7 Oct 2026)
- Velocity writes #if( ) #elseif( ) #else #end, #foreach( $product in $allProducts ) ... #end, properties as $customer.Address, and has ==, >, <, >=, <=, &&, || and the text forms eq, ne, gt, ge, lt, le, and, or. Apache Velocity Engine 2.3, User Guide
- HubL uses {{ }} for expressions, {% %} for statements and {# #} for comments, with {% if %}, {% elif %}, {% else %}, {% endif %}, {% for x in y %} ... {% endfor %} and {% set %}. HubSpot, HubL syntax
- In HubL, contact.firstname prints the contact's first name. unsubscribe_link, site_settings and content hold subscription, site and page values, not contact properties. HubSpot, HubL variables
- HubL has ==, !=, >, >=, < and <=, and the logical operators and, or and not. HubSpot, Operators and expression tests
- HubL has the filters default, upper, lower, title, trim, length and urlencode, written after a | character. HubSpot, HubL filters
- Adobe Campaign: "A personalization tag always uses the following syntax: <%=table.field%>". Adobe Campaign v8, Add personalization fields (updated 5 Oct 2026)
- Adobe Campaign's conditional content example is written <% if (language == "EN" ) { %> ... <% } %>. Adobe Campaign v8, Create conditional content (updated 25 Nov 2026)
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.