Insider Tips: Format Currency in After Effects with this Expression

Insider Tips: Format Currency in After Effects with this Expression

Every week, Frame.io Insider asks one of our expert contributors to share a tip, tool, or technique that they use all the time and couldn’t live without. This week, Laurence Grayson shows you how to get your foreign currency formats under control in After Effects. 


If you’re producing commercial motion graphics, sooner or later you’re going to have to deal with currencies. Not an issue if you’re only working with one currency—particularly if it’s your local currency—but potentially complex if your client has asked you to create versions of your work for multiple territories.

Currency formatting in After Effects doesn't need to be complicated
Currency formatting in After Effects doesn’t need to be complicated.

But it doesn’t have to be. Thanks to After Effects’ own internal toolset and this single-line After Effects expression demonstrated by Nic Dean on his YouTube channel Mograph Mindset, you can switch between multiple currencies and their localized formatting just by changing a couple of values.

Here’s how to format currency in After Effects:

  • Go to Project Settings->Expressions and make sure Javascript is enabled as your Expression Engine.
  • Add some text to your composition then add a Slider Control effect to the text layer.
  • Pickwhip the Source Text value of the text layer to your Slider Control and use the Source Text twirldown to reveal the Expression this creates.
  • Replace it with this text:
const num = effect("Slider Control")("Slider").value;
num.toLocaleString('en-US', {style: 'currency', currency: 'USD'})

Now you can change the locale and currency values to suit your needs. For example, ‘en-GB’ and ‘GBP’ will give you British Pounds, ‘de-DE’ and ‘EUR’ will give you German Euros.

Change the locale and currency values to match the currency symbol and formatting you need.
Change the locale and currency values to match the currency symbol and formatting you need.

You can find the full list of ISO currency codes here, and language-COUNTRY codes can be found here. While you can mix and match these if you need to, matching the locale value with the currency value will make sure you get the correct currency symbol as well as the correct currency formatting.


Insider Tips are helpful weekly posts brought to you by Frame.io’s awesome writers and industry experts. Come back for a new Insider Tip every Wednesday, or subscribe to our newsletter to get a reminder each week.

If you’re looking for tips on using Frame.io account, check out Shawn McDaniel’s playlist on our YouTube channel.

Thank you to Laurence Grayson for contributing this article.

After a career spanning [mumble] years and roles that include creative lead, video producer, tech journalist, designer, and envelope stuffer, Laurence is now the managing editor for Frame.io Insider. This has made him enormously happy, but he's British, so it's very hard to tell.

Interested in contributing?

This blog relies on people like you to step in and add your voice. Send us an email: blog at frame.io if you have an idea for a post or want to write one yourself.