- Get Started
- Image & Video APIs overview
- Developer kickstart
- SDK quick starts
- Try it!
- MCP servers and LLM tools (Beta)
- VS Code Extension (Beta)
- Video tutorial library
- Programmatic asset management
- Programmatic upload
- Upload programmatically
- Create upload presets
- Auto upload
- Moderate images with AI
- Use AI to generate image captions
- Upload images in Flutter
- Upload images in Node.js
- Auto-tag images in Node.js
- Upload multiple files in Node.js
- Upload videos in Node.js
- Upload images in Python
- Auto-tag images in Python
- Upload videos in Python
- Upload images in PHP
- Upload images in Go
- Upload assets in a React app
- Upload assets in a Vue.js app
- Drag-and-drop uploads in React
- Upload assets in a Next.js app
- Upload assets with Server Actions
- Upload assets in Svelte
- Upload assets in a SvelteKit app
- Upload assets in a Remix app
- Upload images in Hono
- Use webhooks to remove backgrounds
- Upload images in Laravel
- Interaction with Cloudinary APIs
- Cloudinary SDKs
- Find your credentials
- Configure the JavaScript SDK
- Configure the React SDK
- Configure the Angular SDK
- Configure the Flutter SDK
- Configure Svelte Cloudinary
- Configure the Javascript SDK in Svelte
- Getting started with Cloudinary in Node.js
- Configure the Node.js SDK
- Configure the Python SDK
- Configure the PHP SDK
- Configure the Go SDK
- Configure the Vue.js SDK
- Configure the Next.js SDK
- List images in Next.js
- Lazy load images with Next.js
- Image fallbacks in JavaScript
- Captioning on upload with Node.js
- Delete assets with Node.js
- Manage images in a Django app
- Cloudinary CLI
- Widgets and tools
- Programmatic upload
- Optimization and delivery
- Transformations
- Get started with transformations
- Advanced transformation features
- Text overlay transformations
- Complex transformations
- Named transformations
- Named transformations using TX Builder
- Advanced image components
- Trim videos in Node.js
- Splice videos in Node.js
- Zoompan effect
- Video transformations
- Crop and resize images in React
- Crop and resize videos in React
- Crop and resize images in Python
- Remove backgrounds and add drop shadows
- AI generative fill in Next.js
- Color accessibility in JavaScript
- Transformations for social media
- Dev Hints on YouTube
- Dev Hints en Español
- Cloudinary Café Training Sessions
- Programmatic asset management
- Additional onboarding resources
- Guides
- Cloudinary Image
- Product overview
- Image transformations
- Image transformations overview
- Resizing and cropping
- Placing layers on images
- Effects and enhancements
- Background removal
- Generative AI transformations
- Face-detection based transformations
- Custom focus areas
- Transformation refiners
- Animated images
- Transformations on 3D models
- Conditional transformations
- User-defined variables and arithmetic transformations
- Custom functions
- Image optimization and delivery
- Programmatic image creation
- Product Gallery widget
- Media Editor widget
- Image add-ons
- Cloudinary Video
- Upload
- Asset management
- Account management
- Retail and e-commerce
- User-generated content
- Accessible media
- AI in action
- Native mobile
- Add-ons
- Advanced Facial Attributes Detection
- Amazon Rekognition AI Moderation
- Amazon Rekognition Video Moderation
- Amazon Rekognition Auto Tagging
- Amazon Rekognition Celebrity Detection
- Aspose Document Conversion
- Cloudinary AI Background Removal
- Cloudinary AI Content Analysis
- Cloudinary AI Vision
- Cloudinary Duplicate Image Detection
- Google AI Video Moderation
- Google AI Video Transcription
- Google Auto Tagging
- Google Automatic Video Tagging
- Google Translation
- Imagga Auto Tagging
- Imagga Crop and Scale
- Perception Point Malware Detection
- Microsoft Azure Video Indexer
- OCR Text Detection and Extraction
- Pixelz - Remove the Background
- URL2PNG Website Screenshots
- VIESUSTM Automatic Image Enhancement
- WebPurify Image Moderation
- Cloudinary Image
- References
- SDKs
- Release Notes
React SDK
Last updated: Dec-24-2025
The Cloudinary React SDK provides simple, yet comprehensive image and video rendering, transformation, optimization, and delivery capabilities that you can implement using code that integrates seamlessly with your existing React application.
How would you like to learn?
| Resource | Description |
|---|---|
| React quick start | Get up and running in five minutes with a walk through of installation, configuration, rendering, and transformations. |
| Video tutorials | Watch tutorials relevant to your use cases, from getting started with the React SDK, to rendering and transforming your images and videos. |
| Sample projects | Explore sample projects to see how to implement Cloudinary functionality such as rendering and delivery with transformations. |
| Cloudinary React SDK GitHub repo | Explore the source code and see the frontend-frameworks and js-url-gen CHANGELOGS for details on all new features and fixes from previous versions. |
| Cloudinary Academy | Try the free Introduction to Cloudinary for React Developers online course, where you can learn how to render, transform and optimize your digital assets. |
Install
Install Cloudinary's JavaScript and React packages using the NPM package manager:
If you prefer not to use a bundler, you can import the packages directly from a CDN.
Configure
Include Cloudinary's React and JavaScript classes in your code:
Set required configuration parameters
You can set the required configuration parameter, cloudName, either when creating a Cloudinary instance or per asset.
Cloudinary instance configuration
If you want to use the same configuration to deliver all your media assets, it's best to set up the configuration through a Cloudinary instance, for example:
Asset instance configuration
If you need to specify different configurations to deliver your media assets, you can specify the configuration per image/video instance, for example:
Set additional configuration parameters
In addition to the required configuration parameters, you can define a number of optional configuration parameters if relevant.
camelCase, for example secureDistribution.You can use the Cloudinary constructor to set configuration parameters, for example:
Configuration video tutorials
The following tutorials can help you install and set up your SDK:
See more React video tutorials.
Use
Once you've installed and configured the React SDK, you can use it for:
-
Transforming images - Render your images with transformations applied, using the
AdvancedImagecomponent. See examples -
Transforming videos - Render your videos with transformations applied, using the
AdvancedVideocomponent. See examples - Optimizing delivery - Use plugins to improve your user's experience by automating media tasks like lazy loading, responsive images and more. See plugins
Quick examples: Image transformations
Here are two quick examples to get you started with image transformations:
- Image transformation example 1 - Apply a sepia effect to an image
- Image transformation example 2 - Apply multiple transformations as chained transformations
Image transformation example 1
The following React code renders the front_face.jpg image with a sepia effect applied:
This code creates the HTML required to render the following transformation URL:
Image transformation example 2
You can apply more than one transformation at a time (see chained transformations) to give more interesting results (notice how you import only the actions and qualifiers that you need, to minimize your bundle size):
This relatively simple code performs all of the following on the original front_face.jpg image before delivering it:
- Crop to a 150x150 thumbnail using face-detection gravity to automatically determine the location for the crop
- Round the corners with a 20 pixel radius
- Apply a sepia effect
- Overlay the Cloudinary logo on the southeast corner of the image (with a slight offset). Scale the logo overlay down to a 50 pixel width, with increased brightness and partial transparency (opacity = 60%).
- Rotate the resulting image (including the overlay) by 10 degrees
- Optimize the image to reduce the size of the image without impacting visual quality.
- Convert and deliver the image in PNG format (the originally uploaded image was a JPG)
And here's the URL that's automatically generated and rendered from the above code:
The @cloudinary/url-gen package installs an additional transformation-builder-sdk library as a dependency, which handles the transformation generation part of the URL.
You can use the Transformation Builder reference to find all available transformations, syntax and examples.
There are alternative ways to apply transformations to your images, for example:
- Read the image transformation guide to learn about the different ways to transform your images.
- See more examples of image transformations using the Cloudinary React SDK.
- See all possible transformations in the Transformation URL API reference.
- See all JavaScript transformation actions and qualifiers in the Transformation Builder reference.
Quick examples: Video transformations
Here are two quick examples to get you started with video transformations:
- Video transformation example 1 - Adjust the brightness of a video
- Video transformation example 2 - Apply multiple transformations as chained transformations
Video transformation example 1
The following React code renders the ship.mp4 video with a brightness adjustment applied:
This code creates the HTML required to render the following transformation URL:
Video transformation example 2
You can apply more than one transformation at a time (see chained transformations) to give more interesting results (notice how you import only the actions and qualifiers that you need, to minimize your bundle size):
This relatively simple code performs all of the following on the original ship.mp4 video before delivering it:
- Crop to a 1:1 aspect ratio (square) with a width of 300 pixels, using automatic gravity to determine the focal point
- Apply a blur effect with strength 50
- Apply maximum rounding to create a circular video
And here's the URL that's automatically generated and rendered from the above code:
Similar to image transformations, there are alternative ways to apply transformations to your videos.
- Read the video transformation guide to learn about the different ways to transform your videos.
- See more examples of video transformations using the Cloudinary React SDK.
- See all possible transformations in the Transformation URL API reference.
- See all JavaScript transformation actions and qualifiers in the Transformation Builder reference.
Plugins
The Cloudinary React SDK provides plugins to render the media on your site in the optimal way and improve your user's experience by automating media tasks like lazy loading, responsive images and more.
- See how to use image plugins and video plugins in your React application.
Sample projects
Take a look at the React sample projects page to help you get started integrating Cloudinary into your React application.
- Try out the React SDK using the quick start.
- See examples of powerful image and video transformations using React code, and see our image transformation and video transformation docs.
- For details on migrating to this SDK from the legacy React SDK, see the React migration guide.
- For information about uploading images and videos from a React application, see React image and video upload.
- Stay tuned for updates by following the Release Notes and the Cloudinary Blog.