> ## Documentation Index
> Fetch the complete documentation index at: https://rive-transitions-2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Exporting for Runtime

> Export a .riv file to use in apps, games, websites, and other supported runtimes.

export const YouTube = ({id, timestamp}) => {
  const videoSrc = timestamp ? `https://www.youtube.com/embed/${id}?start=${timestamp}` : `https://www.youtube.com/embed/${id}`;
  return <iframe width="100%" height="400" src={videoSrc} title="YouTube video player" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerPolicy="strict-origin-when-cross-origin" allowFullScreen />;
};

<Note>Exporting for runtime is available on paid plans. [Learn more about our plans and pricing](https://rive.app/pricing?utm_source=docs\&utm_medium=content).</Note>

A `.riv` file is the final Rive file you load at runtime. You can use the same exported file across supported runtimes, including web, mobile, game engines, and other platforms.

## Exporting a .riv File

<YouTube id="H_px35jTqhg" />

To export a file for runtime, click the blue **Publish** button on the right side of the toolbar, or go to **Export** > **For runtime** from the left toolbar menu.

You can load the exported `.riv` file into your app, game, or website with any of Rive's [open source runtimes](/runtimes/).

<img src="https://mintcdn.com/rive-transitions-2/RVzTL3yYggO5OStL/images/editor/exporting/94fc0d7c-cc7e-4b17-a6f7-0a00c98db70e.webp?fit=max&auto=format&n=RVzTL3yYggO5OStL&q=85&s=c715a9a79eca648f713a6678f17a661e" alt="Image" width="4328" height="2774" data-path="images/editor/exporting/94fc0d7c-cc7e-4b17-a6f7-0a00c98db70e.webp" />

## Using newer files with older runtimes

Rive files are built for backwards compatibility. A file exported from the latest version of the editor can still load in older runtimes.

If a file uses a feature that was added after your runtime version was released, that specific feature may be skipped, while the rest of the file continues to run.

For full [feature support](/feature-support), fixes, and performance improvements, keep your runtime up to date.
