Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which browsers support data URIs and since which version?

Which browsers support data URIs (RFC 2397) and since which version?

like image 680
knorv Avatar asked Nov 19 '09 18:11

knorv


People also ask

Can I use data URI?

You can use data URIs for all sorts of different file types, but they're most commonly used on the web for images (and sometimes fonts). A data URI follows a certain scheme (as shown below) that includes some information about the encoded file — such as the mime type — along with the encoded data itself.

What is data URL in HTML?

A Data URL is a URI scheme that provides a way to inline data in a document, and it's commonly used to embed images in HTML and CSS.


2 Answers

Data URI support status for the five major browsers:

  • Chrome, supported in all versions
  • Firefox, supported in all versions
  • Internet Explorer, supported since 8.0 (however, some restrictions apply)
  • Opera, supported since 7.2
  • Safari, supported in all versions

Additionally this trick can be used to detect data URI support.

like image 88
knorv Avatar answered Sep 23 '22 03:09

knorv


It also appears to work on many mobile browsers now. This is the best list I've found.

like image 35
Coderer Avatar answered Sep 19 '22 03:09

Coderer