Optimize all images on your website
By just adding a simple JS file on to your page

Image Optimisations made easy

Device specific optimisation

Our servers automatically detect which device is making a request and serves an appropriate image. There is no reason why you should be serving the same image to both a low-powered mobile device and a high-end desktop.

Smarter images

Your images are automatically converted to a wide range of formats including Webp (for Chrome, Opera), progressive images (for lower bandwidth conditions) and served accordingly.

Instant Delivery

All the optimized assets are served via AWS Cloudfront's globally distributed CDN. Images are served with lowest possible latency for your users all around the world.

optimized images served every day
MB of bandwidth served every week
unique images optimized

How It Works

Service workers are like proxies that run in your browser which can be controlled via JS. Using this, we route all image requests through our optimising servers at runtime.

What you should do


Ensure HTTPS

Browsers expose the Service Worker API only on secure origins. If your site is not yet on HTTPS, we recommend you check out Let's Encrypt - its simple, and free.


Host the script

Host the script emailed to you on your server root. The script must be accessible at http://yourwebsite.com/script.js. If you are unable to host the script on the server root, check out Service-Worker-Allowed header for alternative options.


Inline the installer

Invoke the hosted script in all your HTML pages. The exact code will be sent to you via email when you sign up. You can build it on your own too from our Github repo

That's it! You should have a faster loading site already sentiment_very_satisfied

Speed up your website with Dexecure

Try it free for a month

We're sorry something went wrong while processing your request

We will look into why this website did not work.


Image Savings 83.45%

Dexecure cuts the size of images on your page from 2.12MB to 212.3KB on a Chrome mobile device. Savings will vary depending on browser and device used.

Your Dexecure script is ready

We have sent you an email with the steps for optimising your site.
Follow the steps in the email, just hit reply with any queries.
Reach out to us in case of any problem.

Our Clients

Dexecure has helped us greatly improve the performance of our website. The solution fits nicely into our architecture and optimising new web pages is very easy and seamless. Not just the solution is great, but also the support from its team is fantastic.
Contact Person Ashwin Singh
Co-Founder, Teamie
Dexecure worked like magic for us - we ended up with a 2.5x improvement in load time just from better image compression. Unless you want to optimize your images yourself for all browsers and on all platforms this is the way to go.
Contact Person Kaiwalya Kher
CTO, WithJoy
Dexecure has made optimising our image heavy website effortless and blazingly fast which is vital to our business.
Contact Person Nur Iman Izam Othman
CTO, MarkedShot


Compare the plans and start your trial.
The first 30 days are free for all plans, no credit card or signup required.


$ 0 Forever
  • Upto 3 GB of optimized images served every month
  • PNG and JPEG optimisations
  • Email support during working hours


$ 19 Monthly
  • Upto 50 GB of optimized images served every month
  • Multiple formats supported such as PNG, JPG, WebP, GiF
  • Device specific optimisations
  • Email support with a 24 hour turnaround time


  • Unlimited optimisations
  • Multiple formats supported such as PNG, JPG, WebP, GiF
  • Device specific optimisations
  • Infinite cache invalidations
  • Personal support representative on demand


  • question_answerWhat happens if your server is not reachable?

    In the unlikely event our server goes down, the script still makes a request back to your original server to retrieve the unoptimized images (bypassing our server entirely). Your users will not notice any visual difference to the page.

  • question_answerWhy do I need a HTTPS website?

    We rely on the Service Worker API which the browsers have exposed only on HTTPS origins for security reasons.

  • question_answerWhich browsers are supported?

    TL;DR: We work in any browser where Service Workers are supported.
    Chrome, Firefox and Opera have a working implementation of Service Wokers, which accounts for more than 75% of current internet traffic.

  • question_answerWhat if I am using Service Workers already?

    You are? High five! Since only one service worker can operate in a given page at a time, you will have to merge our service worker logic into your own. Our service worker logic is extremely light-weight and can be found in our open source repository here

  • question_answerCan you optimize dynamic pages behind a login?

    Yes. Though the test in this page cannot scan behind a login, our script can work well with dynamic pages (or SPA) behind a login too! Go ahead and try it out.

  • question_answerWhy do I have to wait around 15 minutes for the optimisations to kick in?

    We create a new AWS Cloudfront distribution just for you! It will host all your optimized images and this takes around 15 minutes to set up completely.

  • question_answerDon't your optimisations add latency to each request?

    We optimize a image for a particular configuration only once. After it has been optimized, they are directly served via Amazon Cloudfront CDN without hitting our servers.

  • question_answerHow long are the images cached on your CDN?

    We try to replicate your existing cache headers when serving optimized images. We enforce a minimum cache time of 4 hours.

  • question_answerWhy I am not able to see the optimized images on my local host?

    Our optimisations kick in only when a outbound network request takes place. If images are hosted on your own local host, our servers are unable to access them. We recommend trying it out on websites which are hosted online.

  • question_answerHow do I know if an image is optimized?

    You should see the average page size and the load times reduce in the developer tools of your favourite browser or in monitoring tools that you may have set up such as New Relic, etc.

  • question_answerCan I put the script file on any path other than the root?

    Sure, just make sure that the script installation call from the HTML file points to the right location. Also since the script is a Service-Worker, a script installed in a sub-directory can only control pages within that sub-directory. To get around this limitation, you should set a particular response header for the Service-Worker. Read more about the Service-Worker-Allowed header here.

  • question_answerI get the error ERR_NAME_NOT_RESOLVED after setting up everything.

    Is the error occuring on a URL that is of the format *.cloudfront.net? If so, it means that AWS is creating a distribution for you - this process usually takes upto 15 minutes. There should be no visual difference to your website at this time. Once it is ready, the error will be resolved automatically. In case the error persists, contact us.


Inian, Co-Founder

JavaScript Ninja, web security expert and chocoholic. Manages the overall operations of Dexecure.

Murali, Co-Founder

Unclean code drives him nuts. Tech nerd, coder by day and gamer by night.

Prateek, Advisor

Web security shifu. Specializes in building secure systems interfacing with the cloud, web and personal devices.

Max, Director

Veteran business strategist and venture builder. He can recite the specs of any race car even in the middle of his sleep.

Juzar, Director

Venture capitalist, and CEO of research lab. Enjoys the thrills and spills of breakthrough ideas, as he does Alpine skiing.