Home › Developer Tools › Lottie Viewer

Lottie Viewer

Drop a Lottie JSON or .lottie file to preview the animation right away. Play, pause and scrub through every frame, change the speed and background, jump to markers, and see its size, frame rate, duration and layers.

Last updated:

0 / 0

Animation details

Layers

Advertisement
Advertisement

How to use the Lottie Viewer

  1. Open a file with Open Lottie file or drag a .json or .lottie file onto the player. A sample animation plays on load.
  2. Play or pause with the button or the space bar, and turn Loop on or off.
  3. Scrub the timeline slider to any frame, or use the step buttons (or the arrow keys) to move one frame at a time.
  4. Change speed and background to check timing and transparent areas against light or dark pages.
  5. Inspect the details panel for dimensions, frame rate, duration, layers and markers, and download the JSON if needed.

What is inside a Lottie JSON file

A Lottie animation is a single JSON object. A handful of top-level keys describe the canvas and timeline, and a layers array holds the content, drawn from the last layer (bottom) to the first (top). Shape layers contain groups of paths, ellipses and rectangles with fills, strokes and transforms; any property can be static ("a": 0) or animated with keyframes ("a": 1).

KeyMeaningExample
vBodymovin/Lottie format version that exported the file"5.7.4"
w, hCanvas width and height in pixels512, 512
frFrame rate in frames per second30
ip, opIn point and out point (first frame and the frame after the last)0, 90
layersLayer list (shape, solid, image, null, text, precomp)[ … ]
assetsImages and precompositions that layers refer to by id[{"id":"image_0", …}]
markersNamed points or ranges on the timeline (tm start, dr duration, cm name){"tm":30,"cm":"hover","dr":20}
fonts, charsFonts and glyph outlines for text layers{"list":[…]}

Duration in seconds is (op − ip) ÷ fr. An animation with ip 0, op 120 and fr 60 runs for 2 seconds.

Layer type numbers

tyLayer typeNotes
0PrecompShows a nested composition from assets
1SolidA filled rectangle of one color
2ImageBitmap from an image asset (embed it as a data URI)
3NullInvisible parent used to move other layers together
4ShapeVector shapes: the most common and best-supported type
5TextText with font data; rendering depends on available fonts

Tips for smaller, smoother Lottie animations

  • Keep the frame rate at 24-30 fps for UI animations; 60 fps doubles the keyframe data for little visible gain on icons.
  • Prefer shape layers over images. Bitmaps make files much larger and blur when scaled.
  • Use markers to name segments (intro, loop, outro) so developers can play just the part they need.
  • Check the animation on both light and dark backgrounds: thin dark strokes often disappear in dark mode.
  • Step through the first and last frames to make sure a looping animation starts and ends on matching poses.

Frequently asked questions

What is a Lottie file?

Lottie is a JSON-based vector animation format, originally exported from After Effects with the Bodymovin plugin. It stores shapes, keyframes and timing as data, so a player can draw the animation at any size with a small file.

What is the difference between .json and .lottie?

A .json file is the raw Lottie animation. A .lottie (dotLottie) file is a ZIP archive that bundles one or more Lottie JSON animations with a manifest and any images they use. This viewer unzips .lottie files in your browser and embeds the images.

Is my animation uploaded anywhere?

No. The file is read and played locally. The only download is the open-source lottie-web player library, loaded from a public CDN the first time you use the tool.

Why does my animation look different from After Effects?

Lottie players support most but not all After Effects features. Expressions, some effects, layer styles, 3D layers and certain blend modes are partly or not supported. Keep animations to shapes, masks, transforms and trim paths for the best results.

How is the duration calculated?

Duration in seconds equals (out point − in point) ÷ frame rate. For example, an animation with ip 0, op 90 and fr 30 lasts 90 ÷ 30 = 3 seconds.

Why do images in my JSON not show?

Lottie JSON can reference external image files by path. If those files are not embedded as data URIs, the player cannot find them. Use a .lottie file or export with images embedded.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

SVG ViewerOpen or paste SVG code to preview it live with zoom, backgrounds, size info and PNG export.JSON ViewerExplore JSON as a collapsible tree, search keys and values and copy any node's path.CSS Animation GeneratorCreate CSS keyframe animations from 23 presets with live preview, timing controls and Copy CSS.GIF Frame ExtractorSplit an animated GIF into PNG frames with delays, a sprite sheet and ZIP download.Online Python CompilerRun Python 3 in your browser with input(), numpy, pandas, charts and share links.JSON EditorEdit JSON in a tree and as code side by side: add, rename, drag, change types, undo and download.Unzip FilesOpen and extract ZIP files online.RAR & 7z ExtractorOpen RAR, 7z and other archives online and extract files.Regex TesterTest and debug regular expressions live.File Info ViewerCheck file size, type, date and MD5/SHA hashes.SQLite ViewerOpen .db and .sqlite files in your browser, browse tables and run SQL queries.DOCX ViewerOpen and read Word .docx files in your browser, then print or save them as HTML.EPUB ReaderOpen and read EPUB e-books in your browser with pages, a table of contents and font controls.What Is My BrowserSee your browser, version, OS, engine, screen and which web features it supports.Font ViewerPreview TTF, OTF, WOFF and WOFF2 fonts with sample text, waterfall, glyphs and metadata.Markdown EditorWrite Markdown with a toolbar, live split preview, autosave and .md or HTML export.Regex Cheat Sheet75+ ready-to-use regex patterns for emails, URLs, IPs and dates, each with a live test box.JavaScript Keycode FinderPress any key to see its JavaScript key, code, keyCode, which, location and modifiers.QR Code ScannerScan QR codes with your camera or from an image and safely read the link or text.RAID CalculatorUsable capacity, efficiency and fault tolerance for RAID 0, 1, 5, 6, 10, 50 and 60 arrays.JSONPath TesterTest JSONPath expressions live: filters, slices, wildcards and recursive search, with matches highlighted.Mermaid Diagram EditorWrite Mermaid code and see flowcharts, sequence, Gantt and ER diagrams live. Export SVG or PNG.Country Codes ListSearch ISO 3166 alpha-2, alpha-3 and numeric country codes with calling codes and TLDs.CSS Selector TesterTest CSS selectors on your HTML: highlighted matches, match count and specificity.Git Cheat SheetSearchable Git command reference by task, with copy buttons and an undo/rename/fix wizard.HAR File ViewerOpen a .har file to see a waterfall timeline, headers, bodies, timings and size totals.jq PlaygroundRun jq filters on JSON in your browser with live output, flags and an example library.Markdown Cheat SheetInteractive Markdown syntax reference: edit every example and see the live rendered preview.Regex ExplainerPaste a regular expression and get a plain-English breakdown, railroad diagram and flag notes.XPath TesterTest XPath expressions on XML or HTML: highlighted matches, node paths, values and examples.EML File ViewerOpen .eml email files to read the message, headers and raw source and save attachments.Graphviz Online ViewerWrite Graphviz DOT code and render graphs live; switch layout engines, export SVG or PNG.JavaScript Online CompilerWrite and run JavaScript in your browser with a console, timing, error lines and share links.Jupyter Notebook ViewerOpen .ipynb files and read code, Markdown, math, tables, plots and errors without Python.LaTeX Table GeneratorEdit a table like a spreadsheet or paste from Excel and get LaTeX tabular or booktabs code.Log File ViewerOpen huge log files with level colors, regex and time filters, JSON pretty-print and tail -f.Logic Gate SimulatorBuild logic circuits with AND, OR, NOT, XOR gates and flip-flops; see live outputs and truth tables.MSG File ViewerOpen Outlook .msg emails in your browser: sender, recipients, body, headers and attachments.Folder Compare ToolCompare two folders by file list, size and SHA-256 hash, then open a text diff of changed files.Glob Pattern TesterTest glob patterns like **/*.js, {a,b} and !exclusions against a list of file paths.JMESPath TesterEvaluate JMESPath expressions against JSON live, the query language used by the AWS CLI.MongoDB Query TesterTest MongoDB find filters, projections and aggregation pipelines on sample JSON documents.Semantic Version CalculatorBump, compare, sort and test SemVer versions against npm ^, ~ and x ranges.XSLT TesterRun an XSLT 1.0 stylesheet on XML in your browser and see the output as HTML, XML or text.ASCII Diagram EditorDraw boxes, arrows and text on a character grid and copy plain-text diagrams for code and READMEs.DBF File ViewerOpen dBase .dbf files and shapefile tables, search and sort records, export CSV or XLSX.MBOX File ViewerOpen .mbox mail archives: list and search messages, read them, save attachments, export EML.MDB File ViewerOpen Access .mdb and .accdb databases in your browser: list tables, view rows, export CSV.Shapefile ViewerView zipped shapefiles on a map with the attribute table, then export to GeoJSON or CSV.Online Code EditorVS Code-style editor in your browser: tabs, 50+ languages, find/replace, autosave.Online Hex EditorOpen any file as hex and ASCII, edit bytes, search, inspect values and save the result.PHP Online CompilerRun PHP 8 code in your browser with output, HTML preview, error lines and share links.PlantUML EditorWrite PlantUML and see sequence, class, activity and more diagrams live. Export SVG or PNG.Sorting Algorithm VisualizerWatch bubble, insertion, merge, quick, heap and radix sort step by step with live counters.Diff ViewerPaste a git diff or .patch file and view it side by side or inline, with file navigation.EditorConfig GeneratorBuild an .editorconfig with indent, charset, line endings and trim rules per file pattern.
See all 53 Code Playgrounds & Testers →