The site uses cookies that you may not want. Continued use means acceptance. For more information see our privacy policy.

testing.

You can use the <img src=”data:img/(type);base64,(base64 string of image)” /> tag format to put an image file directly into the HTML document. This is known as a “Data: URL.”

This is a test of a “data:” url.

test image

Explanation:

You can use the <img src="data:img/(type);base64,(base64 string of image)" /> tag format to put an image file directly into the HTML document. This is known as a “Data: URL.”

This page contains a command line utility for Windows to encode/decode base64.

Add a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Post navigation