# Real-time Event Data Transformations | RudderStack

Transform events in flight with JavaScript or Python to clean data, enforce privacy measures, and implement advanced use cases.

Source: https://www.rudderstack.com/product/transformations/

# Real-time Transformations

Endless flexibility to transform your event data in flight with JavaScript or Python

[Request a demo](https://www.rudderstack.com/request-demo/ "Request a demo")

Ship data projects faster

Transform events in real time with prebuilt templates or custom code.

Implement privacy and quality controls

Protect tools and teams from PII, and enforce data governance standards.

Adapt quickly to change

Modify events in flight and easily build custom integrations.

Powering innovation at any scale

![Lovable logo](https://cdn.sanity.io/images/97bpcflt/production/ffd6cb8c78720de632065e1dcbfbe037f1751708-130x24.svg?w=384&fm=png)

![cars.com logo](https://cdn.sanity.io/images/97bpcflt/production/174f846afc0661ca9dee432be29464b7d3f9c760-109x44.svg?w=256&fm=png)

![HEX logo](https://cdn.sanity.io/images/97bpcflt/production/768b01bea8061b593c20b206a855ab72a32909b4-82x30.svg?w=256&fm=png)

![Glassdor logo](https://cdn.sanity.io/images/97bpcflt/production/620780a9308b6ce8d4a73767e1bcbc0a37633d80-135x28.svg?w=256&fm=png)

![Vercel logo](https://cdn.sanity.io/images/97bpcflt/production/d7b034dabb118e3d6786d15ff4e01bd28339e623-111x22.svg?w=256&fm=png)

![replicate logo](https://cdn.sanity.io/images/97bpcflt/production/f6d038463ef87fd5ff6dceb3d0b338749eec9912-126x28.svg?w=256&fm=png)

![Lovable logo](https://cdn.sanity.io/images/97bpcflt/production/ffd6cb8c78720de632065e1dcbfbe037f1751708-130x24.svg?w=3840&fm=png)

![cars.com logo](https://cdn.sanity.io/images/97bpcflt/production/174f846afc0661ca9dee432be29464b7d3f9c760-109x44.svg?w=3840&fm=png)

![HEX logo](https://cdn.sanity.io/images/97bpcflt/production/768b01bea8061b593c20b206a855ab72a32909b4-82x30.svg?w=3840&fm=png)

![Glassdor logo](https://cdn.sanity.io/images/97bpcflt/production/620780a9308b6ce8d4a73767e1bcbc0a37633d80-135x28.svg?w=3840&fm=png)

![Vercel logo](https://cdn.sanity.io/images/97bpcflt/production/d7b034dabb118e3d6786d15ff4e01bd28339e623-111x22.svg?w=3840&fm=png)

![replicate logo](https://cdn.sanity.io/images/97bpcflt/production/f6d038463ef87fd5ff6dceb3d0b338749eec9912-126x28.svg?w=3840&fm=png)

![bol. logo](https://cdn.sanity.io/images/97bpcflt/production/536ecbd23272b963262359a921db28410a4be4ff-75x30.svg?w=3840&fm=png)

![warp logo](https://cdn.sanity.io/images/97bpcflt/production/86d4d3cb795077ffd4f92fefe90893c6a4ffd6d4-120x28.svg?w=3840&fm=png)

![wealthfront logo](https://cdn.sanity.io/images/97bpcflt/production/084e5c0b50f7daf4ef53572b859c18488229c3b0-176x22.svg?w=3840&fm=png)

![Assembly AI logo](https://cdn.sanity.io/images/97bpcflt/production/b50f4a38d12a709ae859c25ae2a6a54a095228b1-151x28.svg?w=3840&fm=png)

![Sanity CMS logo](https://cdn.sanity.io/images/97bpcflt/production/ed84753de98c20f579dfb2a331d52cded4574c6d-119x24.svg?w=3840&fm=png)

![WYZE logo](https://cdn.sanity.io/images/97bpcflt/production/6eff45c3f854941223f84647d634b0ac9563bc90-99x24.svg?w=3840&fm=png)

![Cloudwalk logo](https://cdn.sanity.io/images/97bpcflt/production/c073c4d495ad58d19e214a2b33525979a296c08e-140x36.svg?w=3840&fm=png)

![Prizepicks logo](https://cdn.sanity.io/images/97bpcflt/production/f98545aee0cfec809784e38edcb93964a5ee9d46-179x26.svg?w=3840&fm=png)

![N8N logo](https://cdn.sanity.io/images/97bpcflt/production/4d01fdc6c0aa6fc82991a2de874d2dff501d7ec4-116x32.svg?w=3840&fm=png)

![Phantom logo](https://cdn.sanity.io/images/97bpcflt/production/c21cb119b58458743f37c4142c45a8a572136a34-125x28.svg?w=3840&fm=png)

![Moises logo](https://cdn.sanity.io/images/97bpcflt/production/55316d51a27dddd4f8d7b8fd695edb9a0be6bf4e-142x24.svg?w=3840&fm=png)

![Magic Eden logo](https://cdn.sanity.io/images/97bpcflt/production/b45a30b15d44d20076682b8de02ebee01690b1d1-155x30.svg?w=3840&fm=png)

![VSCO logo](https://cdn.sanity.io/images/97bpcflt/production/3a8566b62f5b4ac6aa53d7408ba8dbf00dab5f69-106x36.svg?w=3840&fm=png)

![Lovable logo](https://cdn.sanity.io/images/97bpcflt/production/ffd6cb8c78720de632065e1dcbfbe037f1751708-130x24.svg?w=3840&fm=png)

![cars.com logo](https://cdn.sanity.io/images/97bpcflt/production/174f846afc0661ca9dee432be29464b7d3f9c760-109x44.svg?w=3840&fm=png)

![HEX logo](https://cdn.sanity.io/images/97bpcflt/production/768b01bea8061b593c20b206a855ab72a32909b4-82x30.svg?w=3840&fm=png)

![Glassdor logo](https://cdn.sanity.io/images/97bpcflt/production/620780a9308b6ce8d4a73767e1bcbc0a37633d80-135x28.svg?w=3840&fm=png)

![Vercel logo](https://cdn.sanity.io/images/97bpcflt/production/d7b034dabb118e3d6786d15ff4e01bd28339e623-111x22.svg?w=3840&fm=png)

![replicate logo](https://cdn.sanity.io/images/97bpcflt/production/f6d038463ef87fd5ff6dceb3d0b338749eec9912-126x28.svg?w=3840&fm=png)

![bol. logo](https://cdn.sanity.io/images/97bpcflt/production/536ecbd23272b963262359a921db28410a4be4ff-75x30.svg?w=3840&fm=png)

![warp logo](https://cdn.sanity.io/images/97bpcflt/production/86d4d3cb795077ffd4f92fefe90893c6a4ffd6d4-120x28.svg?w=3840&fm=png)

![wealthfront logo](https://cdn.sanity.io/images/97bpcflt/production/084e5c0b50f7daf4ef53572b859c18488229c3b0-176x22.svg?w=3840&fm=png)

![Assembly AI logo](https://cdn.sanity.io/images/97bpcflt/production/b50f4a38d12a709ae859c25ae2a6a54a095228b1-151x28.svg?w=3840&fm=png)

![Sanity CMS logo](https://cdn.sanity.io/images/97bpcflt/production/ed84753de98c20f579dfb2a331d52cded4574c6d-119x24.svg?w=3840&fm=png)

![WYZE logo](https://cdn.sanity.io/images/97bpcflt/production/6eff45c3f854941223f84647d634b0ac9563bc90-99x24.svg?w=3840&fm=png)

![Cloudwalk logo](https://cdn.sanity.io/images/97bpcflt/production/c073c4d495ad58d19e214a2b33525979a296c08e-140x36.svg?w=3840&fm=png)

![Prizepicks logo](https://cdn.sanity.io/images/97bpcflt/production/f98545aee0cfec809784e38edcb93964a5ee9d46-179x26.svg?w=3840&fm=png)

![N8N logo](https://cdn.sanity.io/images/97bpcflt/production/4d01fdc6c0aa6fc82991a2de874d2dff501d7ec4-116x32.svg?w=3840&fm=png)

![Phantom logo](https://cdn.sanity.io/images/97bpcflt/production/c21cb119b58458743f37c4142c45a8a572136a34-125x28.svg?w=3840&fm=png)

![Moises logo](https://cdn.sanity.io/images/97bpcflt/production/55316d51a27dddd4f8d7b8fd695edb9a0be6bf4e-142x24.svg?w=3840&fm=png)

![Magic Eden logo](https://cdn.sanity.io/images/97bpcflt/production/b45a30b15d44d20076682b8de02ebee01690b1d1-155x30.svg?w=3840&fm=png)

![VSCO logo](https://cdn.sanity.io/images/97bpcflt/production/3a8566b62f5b4ac6aa53d7408ba8dbf00dab5f69-106x36.svg?w=3840&fm=png)

## Move faster and build data trust

Over 75% of our customers use Transformations because they deliver ultimate flexibility and allow you to adapt to changes fast.

## Key features

Boost productivity, increase time to value, and support advanced use cases with engineering-friendly features.

JavaScript and Python Support

Write custom code in your language of choice to implement any use case

Version controlled

Deploy version-controlled transformations via GitHub

Transformations API

Create, read, update, and delete transformations programmatically

Libraries

Save transformation code for reuse, and get started with default libraries

19+ quickstart templates

Implement common use cases fast with our prebuilt templates

Observability and debugging

Get visibility into all metrics and debug quickly with clear error messages

## Data processing and enrichment

Process your event data in pipeline to ensure only activation-ready data gets downstream.

-   **Data cleaning** – remove or rename event fields to clean your data inflight.

-   **Data formatting and filtering** – reformat payloads and use allowlists or denylists to ensure only relevant, necessary data reaches the destination.

-   **Data enrichment** – automatically hit external APIs to add additional data to your events.

[Read the Transformations docs](https://www.rudderstack.com/docs/transformations/overview/ "Read the Transformations docs")

## Data governance

Easily implement data compliance and data quality measures in your pipelines so downstream teams can use data with confidence.

-   **Data privacy** – replace or mask any sensitive data in your payloads on a per-destination basis to protect sensitive information and ensure compliance.

-   **Data quality** – identify violations with tracking plans and manage them automatically with transformations.

[Read the Transformations docs](https://www.rudderstack.com/docs/transformations/overview/ "Read the Transformations docs")

## Advanced use cases

Go beyond basic use cases and use Transformations to solve trickier problems and unlock innovation.

-   **Real-time activations** – trigger activations in your engagement platform based on event type to send customer communications in real-time.

-   **Real-time personalization** – store user IDs and custom experiences in Redis, and use the Transformations API to serve personalized experiences with a fetch call.

-   **Dynamic headers** – Dynamically set headers before delivering events to a webhook destination to send events to different paths.

[Explore more use cases](https://www.rudderstack.com/blog/endless-applications-for-rudderstack-transformations/ "Explore more use cases")

![Phantom logo](https://www.rudderstack.com/_next/image/?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F97bpcflt%2Fproduction%2Fd4c711f85d290222b876ead27645760be8907e59-1139x224.png&w=3840&q=75)

“We use RudderStack to power a deeply personalized experience and execute engaging campaigns across all of our digital properties. Its powerful, engineering-friendly features help us punch above our weight.”

Ricardo Pinho

Data Engineer, Phantom

[Read the blog](https://www.rudderstack.com/blog/a-groundbreaking-approach-to-creating-and-delivering-complete-customer-profiles/#742b1a836661 "Read the blog")

#1

in the app store

![Phantom logo](https://www.rudderstack.com/_next/image/?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F97bpcflt%2Fproduction%2Fd4c711f85d290222b876ead27645760be8907e59-1139x224.png&w=3840&q=75)

“We use RudderStack to power a deeply personalized experience and execute engaging campaigns across all of our digital properties. Its powerful, engineering-friendly features help us punch above our weight.”

Ricardo Pinho

Data Engineer, Phantom

[Read the blog](https://www.rudderstack.com/blog/a-groundbreaking-approach-to-creating-and-delivering-complete-customer-profiles/#742b1a836661 "Read the blog")

#1

in the app store

## Start delivering business value faster

Implement RudderStack and start driving measurable business results in **less than 90 days**.

[Try for Free](https://app.rudderstack.com/signup?type=freetrial "Try for Free")

[Request a Demo](https://www.rudderstack.com/request-demo/ "Request a Demo")
