Cloudinary Blog
Mobile Optimization: Optimize Your Mobile-Web User Experience


We live in a visual world, often while on the go, and consumers expect media-rich web content. Accordingly, the loading speed of images and videos is a big factor in user experience. To optimize customer satisfaction with your mobile content, you must focus on the quality, format, and size of your digital assets. With Cloudinary, optimization is simple, not only enhancing your mobile web and app performance, but also upping your SEO game and boosting customer experience.

What is Mobile Optimization?

Mobile optimization is designing an engaging and streamlined experience for users accessing your website or app from a specific mobile device. This is sometimes used synonymously with “responsive design” or “mobile friendly”, but an optimized mobile site or app should go beyond just adjusting for screen size and should consider network conditions, type of device, and provide an overall purposeful experience for the specific mobile user. Since users consume far more visual content on mobile than on desktop, your media is the most important part of your mobile optimization.

Optimizations for the Mobile Web

Mobile website optimization is quick and easy with Cloudinary’s capability for on-the-fly URL transformations and built-in, responsive solutions for both images and videos.

Image Optimization

Here are the ways to optimize images with Cloudinary:

  • Add the f_auto,q_auto parameter to all your image URLs to serve the most-optimized format and quality to users with no visual degradation whatsoever. For details, see this blog post.
  • Resize or adopt responsive solutions for your images by doing the following:
    • Resize your images if you have set layout dimensions and know the exact width or height required.
    • Implement responsive design, that is, adjust the content’s size, resolution, and layout to fit the application environment.
      • Leverage Cloudinary’s JavaScript responsive solution for image resizing by adding the w_auto,dpr_auto,c_limit parameter to your URLs. Also, import Cloudinary’s library and include the cld-responsive class in your image tags. For details, see this blog post.
      • Alternatively, use responsive breakpoints instead. Cloudinary can generate the URLs required for your <picture> tag or srcset. For details, see this blog post.

If you were to explicitly resize and adjust for resolution, your final image URLs would look like this:,q_auto,w_500,dpr_2.0,c_limit/happy-pup.jpg

For this image, we were able to reduce the file size from 1.23 MB to 126 KB with those simple URL parameters.

Video Optimization

Optimize your videos with Cloudinary by also focusing on size, format, and quality.

  • Resize your videos to fit your design. For example, adding the w_800,c_limit parameter to a video’s URL resizes that video to 800 pixels wide unless the original is smaller. Just change the 800 value to the known maximum width for your videos.,c_limit/dog.mp4

    We reduced the size of this video from 9.1 MB to 669 KB with that resize parameter.

  • By default, any transformation implicitly applied with Cloudinary to a video (e.g., resizing, as described above) also includes the video codec auto (vc_auto) settings when the transformed video is delivered. vc_auto applies quality 70 (q_70) and the universally-accepted video and audio settings for the type of file in question. Hence, to serve the original video with no additional parameters for a quick win, add vc_auto to your URL. For more details, see the Cloudinary documentation.

    With just vc_auto, the file size shrank from 9.1 MB to 821 KB.

  • To optimize further, for browsers that support highly-optimized video codecs, add HTML markup to switch among H.265, VP9, and H.264. Here’s an example:

    <video controls>
    <source src=",w_1280,c_limit/dog.mp4" type="video/mp4; codecs=hevc">
    <source src=",w_1280,c_limit/dog.webm" type="video/webm; codecs=vp9">
    <source src=",w_1280,c_limit/dog.mp4" type="video/mp4"> 

    With this multi-codec approach, this video went from 9.1 MB to 489 KB with H.265/MP4, 540 KB with VP9/WebP, and 821 KB with H.264/MP4. For details, see this blog post.

  • For videos that run for longer than 20 seconds, consider adaptive bitrate streaming to adjust the quality of your video on the fly to accommodate your users’ network conditions.

Quick Reference the Mobile Web

  • To optimize images for the mobile web, add the f_auto,q_auto parameter to the URLs and adopt Cloudinary’s responsive solution.
  • To optimize videos for the mobile web, add the vc_auto parameter. To optimize further, specify different sources with HTML markup so that the browser can choose the best codec with Cloudinary’s auto-transcoding capability on the fly. In addition, you can resize videos with the w_800,c_limit parameter, setting 800 to the known maximum width for your videos.
  • For longer videos, use adaptive bitrate streaming.

Optimizations for iOS and Android Apps

Cloudinary’s iOS and Android SDKs offer simple yet comprehensive optimization and delivery capabilities, which you can seamlessly integrate with your native apps.

  • Our iOS SDK enables you to upload, manipulate, optimize, and deliver images and videos with just a few simple lines of code.
  • Our Android SDK features the MediaManager class, with methods for configuring and handling all media-related operations.

The sections below describe how to optimize the quality, format, and media size of your native apps with those two SDKs.

Image Optimization

Resizing your images or adopting a responsive app design is important on both iOS and Android. Cloudinary’s responsive solutions for native apps simplify the many complexities in the creation of multiple variants of media assets.

  • For Android, use Cloudinary’s quality-compression algorithm and Google’s optimized image format, WebP, to serve light images to your users. Just add the q_auto,f_webp parameter to your image URLs or apply transformations through the SDK for easy android image compression.,q_auto/fat_cat.jpg

    For this image, we were able to reduce the file size from 445 KB to 21 KB.

  • For iOS, since that platform does not support WebP, optimize the quality and apply lossy compression to achieve similar results. That, is, add the q_auto,fl_lossy parameter to your image URLs or apply the transformations through the SDK.,fl_lossy/fat_cat.jpg

    Post-optimization, the image shrank from 445 KB to 32 KB.

As a bonus, if you accept user-generated content, preprocess your images to reduce upload and delivery times.

Video Optimization

Optimize your videos as follows:

  • For native apps, target the new video codecs described in the Mobile Web section explicitly in your URLs.
  • For iOS 11+, take advantage of H.265’s MP4 support and resize your videos with the f_mp4,vc_h265,w_1280,c_limit parameter, setting the 1280 value to the known maximum width for your videos.,vc_h265,w_1280,c_limit/cat.mp4

    For this video, the iOS optimizations reduced the file size from 3.6 MB to 1.6 MB.

  • For Android 4.4+, serve the highly-optimized VP9 video codec in WebM and resize your videos with the f_webm,vc_vp9,w_1280,c_limit parameter, setting the 1280 value to the known maximum width for your videos.,vc_vp9,w_1280,c_limit/cat.mp4

    For this video, we were able to reduce the file size from 3.6 MB to 1.3 MB.

  • Be sure that your video player of choice supports the new video codecs, as Cloudinary’s Video Player does. For older devices, default to the universally-accepted codec formats by adding the vc_auto,w_1280,c_limit parameter to your Cloudinary URLs, setting the 1280 value to the known maximum width for your videos.

  • Adaptive bitrate streaming also works well for longer videos in your apps. ExoPlayer for Android supports the DASH streaming solution, and AVPlayer for iOS supports HLS.

Quick Reference iOS and Android Apps

  • For iOS, add the q_auto,fl_lossy parameters to your images and adopt the iOS SDK’s built-in responsive solution. Use Cloudinary’s Video Player and add the vc_h265,f_mp4 parameter to resize your videos.
  • For Android, add the q_auto,f_webp parameter to your images and adopt the Android SDK’s built-in responsive solution. Use Cloudinary’s Video Player and add the vc_vp9,f_webm parameter to resize your videos.
  • Add a fallback format to the vc_auto,w_1280,c_limit parameter for older devices that do not support the newer video codecs, setting the 1280 value to the known maximum width for your videos.
  • Use adaptive bitrate streaming for playing longer videos in your apps.


Serving optimized images and videos is crucial for delivery of web content. Since digital media are consumed more often on mobile devices, web and mobile app developers must consider the vast ecosystem of those devices while devising their mobile website design, app optimization and delivery strategies for a satisfactory end-user experience. With Cloudinary, achieving a responsive, optimized, and fast mobile experience is easy and hassle free, freeing you up to focus on your core business. Sign up for free to try it out!

Recent Blog Posts

Video Manipulations and Delivery for Angular Video Apps

On social media, videos posted by users constitute a significant amount of the content appeal on those platforms. From upload to manipulation to delivery, a smooth, efficient, and effective pipeline for the posting process is mandatory to ensure consistent user sessions and their steadily increasing volume. However, building such an infrastructure is a complex, labor-intensive, and problem-prone undertaking.

Read more
Green Screen Queen: Dynamic Video Transparency Fit For Royalty

If you were reading your social media or news feeds on or around June 11 this year, no doubt you came across your fair share of posts about Queen Elizabeth and her outfit-color faux pas. For her 90th birthday, she chose a solid neon green suit, and it didn't take long for Photoshop fanatics to suggest alternative designs for the Queen's green-screen threads.

Read more
Content-Aware Automatic Cropping for Video

Delivering videos according to the aspect ratios defined by social media for multiple devices and platforms is a growing challenge. The continuously rising volume of vertical videos and the corresponding increase in video traffic on mobile devices (now up to 57% of online videos watched) have only exacerbated the situation, with no letup in sight.

Read more
Use a custom function in the image delivery pipeline

Cloudinary offers a wide array of image manipulations and effects to apply to images as part of our image-processing pipeline, helping to ensure that your images fit the graphic design of your website or mobile application. Cloudinary is an open platform, and you can use our APIs, Widgets and UI to build the media management flow that matches your needs.

Read more
OpenText™ TeamSite – Cloudinary Plugin

Tired of depending on other teams or software to create assets in multiple sizes for your responsive web site?

Does importing asset files into TeamSite slow down your web content publishing?

Klish Group is pleased to introduce the OpenText TM TeamSite – Cloudinary connector. Customers of the OpenText TM TeamSite web content management platform can now browse and select images in the same way they always have. Authors can just browse and select the image they want to use and Cloudinary will automatically deliver it in the optimal format and quality to the customer requesting it.

Read more