The URI scheme for data URIs, defined in RFC 2397 as data:[<mediatype>][;base64],<data>
The URI scheme for data URIs, defined in RFC 2397 as :
data:[<mediatype>][;base64],<data>
According to RFC 2397:
The <mediatype> is an Internet media type specification (with optional parameters.) The appearance of
;base64
means that the data is encoded as base64. Without;base64
, the data (as a sequence of octets) is represented using ASCII encoding for octets inside the range of safe URL characters and using the standard%xx
hex encoding of URLs for octets outside that range. If <mediatype> is omitted, it defaults totext/plain;charset=US-ASCII
. As a shorthand,text/plain
can be omitted but the charset parameter supplied.
For questions about data URIs that are not specifically about the data URI scheme, use the tag data-uri.