Skip to main content
LanguageEnglish
Comparisons4 min readOctober 2026

What is Tencent PAG animation and how does it compare to Lottie?

Short answer

PAG (Portable Animated Graphics) is an open source animation format and set of players from Tencent. Like Lottie, it plays animations exported from After Effects, but it uses a compact binary file and aims to support more After Effects features, plus replacing text and images at runtime. Lottie has a much larger global ecosystem; PAG is most common in apps built in China.

Core Takeaway

  • PAG and Lottie both turn After Effects animations into files apps can play
  • PAG: binary .pag files from Tencent's After Effects exporter, open source
  • Lottie: JSON (or compressed .lottie) via Bodymovin, very widely supported
  • PAG supports runtime text and image replacement for templates
  • Neither is an interactive state-machine tool on its own

Both formats solve the same problem: designers animate in After Effects, and apps need to play that animation without a video file. Lottie does it with JSON exported by the Bodymovin plugin. PAG does it with a binary file exported by Tencent's own After Effects plugin.

PAG is open source and was built for Tencent's products, which use animation heavily in templates, stickers and video effects. Its strengths are a compact binary format, support for a wider range of After Effects features, and the ability to replace text and images inside an animation at runtime, which is useful for user-generated templates.

Lottie's strength is its ecosystem. Players exist for almost every platform and framework, many design tools export it, and there are large libraries of free animations. For most teams outside China, Lottie is the safer default.

Both formats play fixed animations. If your animation needs to react to the user, with states such as hover, pressed and loading, you need a state machine, either built in code around the player or authored in a tool such as Rive or ExodeUI, which we make.

Frequently asked questions

Is PAG free?

PAG is open source. Check its repository for the current licence and platform support.

Can I convert Lottie to PAG?

Both start from After Effects, so the usual route is to export the original After Effects project with the PAG exporter.

Which is smaller, PAG or Lottie?

PAG uses a binary format designed to be compact; results depend on the animation, so compare with your own files.

Should I switch from Lottie to PAG?

Only if you need features Lottie lacks, such as runtime text and image replacement, and the PAG players cover your platforms.

Related Guides & Examples

Inspect a Lottie file in the browser

Open any Lottie JSON, see its layers and size, and spot what makes it heavy. Free.

Open the Lottie viewer
ExodeUI

EXODEUI DESKTOP

A little space for good ideas.

Choose your platform to get the official ExodeUI installer.

Looking for Intel Mac or other builds? Explore the web studio or check all download options.

Prefer the browser? Try for free in your browser →