🍋 Image Tools
Image to Base64
Encode images as Base64 text for embedding in code.
🍋
Tropfen
🫸
Squeeze
🍹
Fresh!
🍋
Drop Your Lemons Here
Drag & drop files here
— or —
JPEG
PNG
WebP
GIF
SVG
BMP
⚙️ Squeeze Settings
🍋
Ueber Image to Base64
Convert images to Base64-encoded text strings directly in your browser. Useful for embedding small images in HTML, CSS, JSON, or API payloads without separate file hosting.
So funktioniert es
The file is read using the FileReader API's readAsDataURL method, which produces a Base64-encoded data URI. Optionally, the data URI prefix can be stripped to get raw Base64, and lines can be wrapped at 76 characters for MIME compatibility.
Schritt fuer Schritt
- 1 ['Upload an image (JPEG, PNG, WebP, GIF, SVG, or BMP)', 'Choose whether to include the data URI prefix', 'Optionally enable line wrapping for MIME format', 'Click Convert to generate the Base64 text', 'Download the text file or copy the output']
Tipps
- [
- '
- I
- n
- c
- l
- u
- d
- e
- t
- h
- e
- d
- a
- t
- a
- U
- R
- I
- p
- r
- e
- f
- i
- x
- f
- o
- r
- d
- i
- r
- e
- c
- t
- u
- s
- e
- i
- n
- H
- T
- M
- L
- i
- m
- g
- s
- r
- c
- o
- r
- C
- S
- S
- u
- r
- l
- (
- )
- .
- '
- ,
- '
- S
- t
- r
- i
- p
- t
- h
- e
- p
- r
- e
- f
- i
- x
- w
- h
- e
- n
- u
- s
- i
- n
- g
- B
- a
- s
- e
- 6
- 4
- i
- n
- A
- P
- I
- p
- a
- y
- l
- o
- a
- d
- s
- o
- r
- J
- S
- O
- N
- f
- i
- e
- l
- d
- s
- .
- '
- ,
- '
- K
- e
- e
- p
- i
- m
- a
- g
- e
- s
- s
- m
- a
- l
- l
- (
- <
- 5
- 0
- K
- B
- )
- f
- o
- r
- i
- n
- l
- i
- n
- e
- e
- m
- b
- e
- d
- d
- i
- n
- g
- —
- l
- a
- r
- g
- e
- r
- i
- m
- a
- g
- e
- s
- i
- n
- c
- r
- e
- a
- s
- e
- p
- a
- g
- e
- s
- i
- z
- e
- .
- '
- ]