Base64 converter for embeded URI Images

Description

A script for converting text or images or anything else to and from Base64.
Also demonstrates the use of Data:_URL which are useful when attempting to embed images inside of webpages with linking them

Convert Text

Convert some text from or to Base64

Data:


Base64 Encoded Data:

Convert Image

Converts an image (under 50k) to to Base64 used in images


Where would this be useful?

This could be useful when building webpage where you want to include multiple images with having to link to an external document.
For example:
The Read me documents that are included with my utilities use this Data:_URL scheam so i do not have to include external images for my buttons. The file size of the read me files goes up but the document no longer relies on external documents.

The advantages are

The Disadvantages are

What is Data:_URL

The data: URI scheme defined in IETF standard RFC 2397, is an URI scheme that allows inclusion of small data items inline, as if they were being referenced to as an external resource. They tend to be far simpler than alternative inclusion methods, such as MIME with cid: or mid:. According to the wording in the RFC, data: URIs are in fact URLs, although they do not actually locate anything.

Data:_URL [Wikipedia.org]
rfc2397 [ietf.org]

What is Base64

Base 64 is a Positional notation using a base of 64. It is the largest power-of-two base that can be represented using only printable ASCII characters. This has led to its use as a transfer encoding for e-mail among other things. All well-known variants that are known by the name Base64 use the characters A–Z, a–z, and 0–9 in that order for the first 62 digits but the symbols chosen for the last two digits vary considerably between different systems. Several other encoding methods such as uuencode and later versions of binhex use a different set of 64 characters to represent 6 binary digits, but these are never called by the name base64.

Base64 [Wikipedia.org]
rfc3548 [ietf.org]

Contact and Help/Suggestions/Comments

Written by: Steven Smethurst
Feel free to contact me