---
title: Image Upload without a Backend (Base64)
description: Let users drag & drop, paste, or pick images and embed them as base64 data URIs without a server endpoint.
keywords: image upload, base64, data uri, drag and drop, paste image, jodit uploader
---

# Image upload without a backend (base64)

If you need image uploading but don't have a server endpoint yet, set
`uploader.insertImageAsBase64URI` to `true`. Jodit will embed dropped,
pasted, or selected images straight into the content as `data:` URIs, so no
backend is needed.

```javascript
const editor = Jodit.make('#editor', {
	uploader: {
		insertImageAsBase64URI: true
	}
});
```

With this option the toolbar **Image → Upload** tab, drag & drop, and pasting
images from the clipboard all work out of the box.

> Base64 inlines the image bytes into the HTML, which bloats the saved content
> for large files. For production with big images, switch to a real
> `uploader: { url: '...' }` endpoint instead.

## Result

Drag an image into the editor below, paste one from the clipboard, or use the
image button on the toolbar.

```html
<!-- Example Start -->
<textarea id="editor">
Drag an image here, paste one, or use the image toolbar button.</textarea
>
<script>
	Jodit.make('#editor', {
		uploader: {
			insertImageAsBase64URI: true
		}
	});
</script>
<!-- Example End -->
```
