Converters transform values before they are applied to a binding. Use them to adapt your data to match the property you’re binding to—for example, converting numbers to strings, mapping values between ranges, or smoothing changes over time.Documentation Index
Fetch the complete documentation index at: https://uat.rive.app/docs/llms.txt
Use this file to discover all available pages before exploring further.
Adding a Converter

Create a Converter
In the Assets panel, click the
+ button and select a converter type.Set Converter Options
With the converter selected, update the settings in the right sidebar.
Most options can be data bound.
Converter Types
Converters can be used individually or combined into groups to perform more complex transformations.| Category | Converter | Description |
|---|---|---|
| String | Pad | Add padding to a string |
| Trim | Remove leading or trailing whitespace | |
| Convert to String | Convert a value to a string | |
| Remove Trailing Zeros | Remove unnecessary decimal zeros | |
| Number | Round | Round to the nearest value |
| Calculate | Perform simple calculations | |
| Range Map | Map a value from one range to another | |
| Interpolator | Smoothly interpolate between values | |
| Formula | Evaluate a custom expression | |
| Convert to Number | Convert a value to a number | |
| Boolean | Toggle | Invert a boolean value |
| List | Number to List | Generate a list of components based on a number |
| List to Length | Get the number of items in a list | |
| Color | Interpolator | Smoothly interpolate between colors |
| Script | Converter Scripts | Create your own custom converters |
Pad
Pads a string to a target length by repeating a value at the start or end. If the string is shorter than the specified length, the pad value is repeated and added until the target length is reached. Example:- Value: 1
- Pad: “0”
- Direction: Start
- Length: 3
Range Map
Maps a number from one range to another. Use Range Map when you want to take an input value and convert it into a different scale. Example Convert a slider value (0–100) into an opacity value (0–1):- Input: 50
- Input range: 0 → 100
- Output range: 0 → 1
Numeric Interpolator

Formula

{Input} refers to the incoming value, while {{...}} references View Model properties.Random Mode
When usingrandom() in your formula, the Random Mode determines when a new random value is generated.
- Once — Generates a random value only when the formula first runs
- Source Change — Generates a new value each time the input changes
- Always — Continuously generates new values while the input changes and during interpolation
Number to List
The Number to List converter allows you to generate a specified number of Components based on a number. See Lists for more information.Color Interpolator

Converter Scripts
Scripting lets you create your own custom converters when you need behavior that isn’t covered by the built-in converters. See Converter Scripts for more information.Converter Groups

When binding a value, your converter group can now be used just like an individual converter.
How execution works
Converters run from top to bottom:- The first converter receives the original input
- Each converter passes its result to the next
- The final output is the result of the last converter