DecodeBox
Search
K
Guides
SDK Reference
Operations
Playgrounds
Operations Explorer
Auto Detection Lab
Encoding & Decoding Lab
Open DecodeBox
Theme
Menu
ON THIS PAGE
#
To Data URI
Wraps the input as a data: URI with a detected or chosen MIME type.
ID:
to-data-uri
Category: Data format
Aliases: data url, inline file, base64 image
#
Arguments
Argument
Type
Default
Constraints
MIME type
string
"auto"
auto, or e.g. image/png