Selecting a file to upload below will cause its contents to be displayed as a Base64 DataURL. This makes it easier to include media such as images or sounds "inline" in web pages without needing to access an external file.

To see the code or to make a comment, visit https://thiscouldbebetter.wordpress.com/2013/07/03/converting-a-file-to-a-base64-dataurl-in-javascript/.

Select a File to Load:


File Contents as DataURL: