Choose a conversion direction
An uploaded file produces a data URL with a media type and Base64 marker. The decode direction reads the prefix and its payload.
Encode a local file as a data URL or decode a data URL into a file, then compare the bytes in Three.js.
How to use
Select an image, font, or other file to convert.
Click convert to create the base64-encoded data URL string.
Click copy to grab the data URL for use in CSS or HTML.
The guide
Choose File to Data URL to encode a local file. Choose Data URL to File to decode a Base64 or percent-escaped data URL. The file’s media type and byte count are displayed with the result.
A concrete input and expected output from the current implementation.
Input
Paste data:text/plain;charset=utf-8,caf%C3%A9 in Data URL to File mode.
Expected output
The preview reads café and the download contains five UTF-8 bytes.
The percent escapes represent the two UTF-8 bytes for é.
An uploaded file produces a data URL with a media type and Base64 marker. The decode direction reads the prefix and its payload.
The tool shows the exact decoded size and previews text or supported raster images. The Three.js cards compare the first 48 file bytes with the encoded text.
Copy Data URL copies the full string. Download File writes the local bytes.
A data URL can use percent escapes or a Base64 payload. The base64 marker tells the decoder which byte representation to read.
Copy Data URL copies the whole value, even when the text box shows the first 4,000 characters.
The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.
Sent. Thank you.