Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Base64
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Other applications=== [[File:35_mm_angle_of_view_vs_focal_length.svg|thumb|link={{filepath:35_mm_angle_of_view_vs_focal_length.svg}}|Example of an SVG file containing embedded JPEG images encoded in Base64<ref><image xlink:href="data:image/jpeg;base64,<code>JPEG contents encoded in Base64</code>" ... /></ref>]] Base64 can be used in a variety of contexts: * Base64 can be used to transmit and store text that might otherwise cause [[delimiter collision]] * Base64 is used to encode character strings in [[LDAP Data Interchange Format]] files * Base64 is often used to embed binary data in an [[XML]] file, using a syntax similar to <code><nowiki><data encoding="base64">β¦</data></nowiki></code> e.g. [[favicon]]s in [[Firefox]]'s exported <code>bookmarks.html</code>. * Base64 is used to encode binary files such as images within scripts, to avoid depending on external files. * Base64 can be used to embed [[PDF]] files in HTML pages.<ref>{{Cite web |title=Encode PDF (Portable Document Format) File (.pdf) to Base64 Data |url=https://base64.online/encoders/encode-pdf-to-base64?utm_campaign=og |access-date=2024-03-21 |website=base64.online |language=en}}</ref> * The [[data URI scheme]] can use Base64 to represent file contents. For instance, background images and fonts can be specified in a [[CSS]] stylesheet file as <code>data:</code> URIs, instead of being supplied in separate files. * Although not part of the official specification for the [[SVG]] format, some viewers can interpret Base64 when used for embedded elements, such as raster images inside SVG files.<ref>{{cite web|url=http://jsfiddle.net/MxHPq/|title=Edit fiddle |website=jsfiddle.net}}</ref> * Base64 can be used to store/transmit relatively small amounts of binary data via a computer's text [[Clipboard (computing)|clipboard]] functionality, especially in cases where the information doesn't warrant being permanently saved or when information must be quickly sent between a wide variety of different, potentially incompatible programs. An example is the representation of the public keys of [[cryptocurrency]] recipients as Base64 encoded text strings, which can be easily copied and pasted into users' [[Cryptocurrency wallet|wallet software]]. * Binary data that must be quickly verified by humans as a safety mechanism, such as [[Checksum|file checksums]] or [[Public key fingerprint|key fingerprints]], is often represented in Base64 for easy checking, sometimes with additional formattings, such as separating each group of four characters in the representation of a [[Pretty Good Privacy|PGP]] key fingerprint with a space. * [[QR code]]s which contain binary data will sometimes store it encoded in Base64 rather than simply storing the raw binary data, as there is a stronger guarantee that all QR code readers will accurately decode text, as well as the fact that some devices will more readily save text from a QR code than potentially malicious binary data.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)