File to Base64
Encode any file as a Base64 string.
What it does
Encodes any file as a Base64 string. Useful when an API, a JSON field or a config only accepts text but you need to send a file. You get the string ready to copy or download.
Related tools
More in Encoding & Base64
Base64 Encode/Decode
Turn text into Base64 and back, with UTF-8 support.
URL Encode/Decode
Percent-encode text for a URL, or decode it back.
Change Text Encoding
Convert a text file between UTF-8, Windows-1250, ISO-8859-2 and other encodings.
Image to Base64
Turn an image into a Base64 string or a data URI for CSS and HTML.
HTML Entities Encode/Decode
Escape <, >, & and quotes as HTML entities, or turn entities back into text.
JWT Decoder
Read the header and payload of a JSON Web Token and its expiry time.
Base64 to Image
Turn a Base64 string or data URI back into an image file.
Base64 to File
Decode a Base64 string and save it as a file.
File to Base64 questions
How do I use the File to Base64?
Drop the file on the box or choose it from your device, set the options and download the result.
Is my file uploaded?
No. The tool runs in your browser, so your file stays on your device.