Use this free tool to encode any file, image or text to base64, you can even convert many files at once. Then you have options to download the base64, or copy, or copy in html/image format and in css/image format.
Base64 encoder, base64 file encoder, base64 image encoder, base64 png encoder, base64 text encoder