How-to
- Select the file you want to convert using the input above;
- Open your browser developer tools:
- Windows: ctrl + alt + i;
- Mac: option + cmd + i;
- Open the 'Console' tab;
- Copy the base64 code shown in the console;
- Paste the base64 code into your file (see examples below);
Examples
Background image:
.classsname { background-image: url('[copied base64 code]'); }
Source image:
<img src="[copied base64 code]">
Web font:
@font-face { font-family: '[font name]'; src: url('[copied base64 code]'); font-weight: [font-weight value]; font-style: [font-weight style]; }