Base64 Image Encoder / Decoder
Convert images to Base64 and back
Encode an uploaded image into a Base64 data URL for inline embedding in HTML or CSS, or decode a Base64 string back into a viewable, downloadable image.
About the base64 image encoder / decoder
Base64 data URLs let you embed images directly inside HTML, CSS or JSON without a separate file request — useful for small icons, email templates, and self-contained documents. This tool converts an uploaded image into its Base64 data URL, and turns a Base64 string back into a previewable, downloadable image.
In encode mode, upload an image to get its full data:image/...;base64,...string, ready to paste into an <img src>. In decode mode, paste a data URL or raw Base64 string, pick the image format if it is raw, and preview or download the result.
How to use the base64 image encoder / decoder
Pick a mode
Choose Encode (image → Base64) or Decode (Base64 → image).
Load input
Upload an image to encode, or paste a Base64 string to decode.
Copy or download
Copy the Base64 string, or preview and download the decoded image.
Frequently asked questions
What is a Base64 data URL?
Can I decode raw Base64 without the data: prefix?
Is my image uploaded anywhere?
Are there size limits?
Explore more utilities
More like this
- Image CompressorShrink PNG, JPG & WebP files client-side
- Image Format ConverterConvert PNG ↔ JPG ↔ WebP & SVG to PNG
- Image Resizer & CropperResize & crop images to any dimensions
- Color Picker & Hex ExtractorSample colors from an image as Hex & RGB
- PDF Merger / SplitterMerge multiple PDFs or split into pages
- Background RemoverRemove image backgrounds & make them transparent
Other utilities
- Word UnscramblerFind every word from jumbled letters
- Anagram SolverFind anagrams of any word
- Word CounterCount words, characters & sentences
- Word FinderFind words matching a pattern
- Random Word GeneratorGenerate random dictionary words
- Character CounterCount characters with & without spaces
- Case ConverterConvert text to upper, lower, title & more
- Text CleanerRemove extra spaces, blank lines & junk
- Remove Duplicate LinesDelete repeated lines from any text
- Sort LinesSort lines alphabetically or numerically
- Text ReverserReverse text, words or characters
- Find & ReplaceFind and replace text with options
- Text DiffCompare two texts and highlight differences
- Slug GeneratorTurn any text into a URL-friendly slug
- Text to ListConvert text into a formatted list
- Percentage CalculatorCalculate percentages instantly
- Percentage Change CalculatorMeasure increase or decrease between values
- Discount CalculatorFind sale price & savings
- Tax CalculatorAdd or remove sales tax & VAT
- Tip CalculatorCalculate tips & gratuity
- Split Bill CalculatorSplit a bill & tip across people
- Ratio CalculatorSimplify & solve ratios
- Fraction CalculatorAdd, subtract, multiply & divide fractions
- Average CalculatorMean, median, mode & range
- Standard Deviation CalculatorVariance & standard deviation of a data set
- Age CalculatorCalculate age from any birthdate
- Date Difference CalculatorAdd to dates or find date differences
- Time Duration CalculatorCalculate time between two times
- Interest CalculatorSimple & compound interest in one tool
- Loan/EMI CalculatorMonthly EMI, interest & total payable
- Unit ConverterConvert length, weight & temperature
- Time ConverterConvert between time units
- Data Storage ConverterConvert bits, bytes, KB, MB, GB & TB
- Data Transfer ConverterConvert bit/s, Mbit/s, MB/s & GB/s
- Pressure ConverterConvert pascal, bar, psi & atm
- Energy ConverterConvert joules, calories, kWh & BTU
- Number/Base ConverterConvert binary, octal, decimal & hex
- Time Zone ConverterConvert times between world time zones
- Power ConverterConvert watts, kilowatts, horsepower & BTU/h
- Fuel Economy ConverterConvert MPG, L/100km & km/L
- JSON Formatter & ValidatorIndent, format, and check raw JSON strings
- Base64 Encoder / DecoderConvert plain text or images to Base64 strings
- Regex TesterTest regular expressions against text in real time
- HTML / CSS MinifierStrip whitespace and line breaks to compress code
- Hash GeneratorGenerate MD5 & SHA-256 hashes from text
- JWT DecoderDecode JSON Web Token header & payload
- UUID GeneratorGenerate RFC 4122 UUIDs (v4)
- Password GeneratorCreate strong, secure random passwords
- QR Code GeneratorTurn any link or text into a QR code
- Random Number GeneratorGenerate random numbers in any range
- Lorem Ipsum GeneratorGenerate placeholder Lorem Ipsum text
- BMI CalculatorCalculate Body Mass Index from height & weight
- Calorie / BMR CalculatorBMR & daily calories (Mifflin-St Jeor)
- Body Fat Percentage CalculatorEstimate body fat via the U.S. Navy method
- Water Intake CalculatorDaily water intake goal from weight & activity
- Pregnancy Due Date CalculatorEstimate your due date from LMP or conception