A JS image editor is an editing surface written in JavaScript that runs inside your web app. Users crop, mask, filter and add text on a <canvas>, and your app gets the edited file back as PNG, JPEG or PDF.
JS image editor demo
Few teams write one from scratch. High-density rendering, resize handles for several selected elements, undo history, font loading and export each take weeks, and together they take months. Polotno SDK ships those parts as an editor you mount in a page, with a JavaScript store your code can drive.
“In just a few hours, I customized Polotno, picked the functions I needed, and from then on concentrated on building my business”

Sven Speer
Founder @ Coamaker
What "JS image editor" covers
The label covers a wide range. At one end sits a single-purpose cropper that hands back a Blob. At the other, a full design surface with layers, fonts, filters and templates. They share three traits:
- Edits run in the browser. The user's image does not have to reach your server before they can crop or filter it.
- The parts are separate. Cropping, filters and text are modules you include or leave out.
- It mounts into a DOM element. That makes it usable from any stack. Polotno's own interface is React, and it also ships as a script bundle for pages with no framework. There are guides for Vue, Angular, Svelte and Next.js.
Add it to a page without a framework
<link href="https://unpkg.com/polotno@4/ui.css" rel="stylesheet" />
<div id="container" style="width: 100vw; height: 100vh"></div>
<!-- keep this script in the body, after the container -->
<script src="https://unpkg.com/polotno@4/polotno.bundle.js"></script>
<script>
const { store } = createPolotnoApp({
key: 'YOUR_API_KEY',
showCredit: true,
container: document.getElementById('container'),
sections: ['photos', 'text', 'elements', 'upload', 'background', 'layers'],
});
</script>That gives you an editor with a side panel, a toolbar and export. sections picks which side panels appear. The bundle suits an editor you use as it comes; to change the interface itself you work with the React components. See frameworkless integration and the React image editor walkthrough.
“Polotno enabled us to give our users Canva-like abilities which for a while was our top requested feature”

Josiah Coad
Founder @ Marky
The calls behind five common features
createPolotnoApp returns the store. Everything the interface does, your code can do through it.
const page = store.activePage;
// add a photo and a caption
const photo = page.addElement({
type: 'image',
src: '/uploads/product.jpg',
x: 0,
y: 0,
width: 800,
height: 600,
});
page.addElement({ type: 'text', text: 'Hello', x: 50, y: 50, fontSize: 60 });
// crop to the left half; values are fractions of the source image
photo.set({ cropX: 0, cropY: 0, cropWidth: 0.5, cropHeight: 1 });
// brightness runs from -1 to 1
photo.set({ brightnessEnabled: true, brightness: 0.2 });
// clip the photo to any SVG shape
photo.set({ clipSrc: '/shapes/circle.svg' });
// export
const png = await store.toDataURL({ pixelRatio: 2 });
const blob = await store.toBlob();
await store.saveAsPDF();- Crop keeps the original pixels, so the user can reset it.
- Filters are switches and numbers: brightness, blur, sepia and grayscale each bind to a checkbox or a slider.
- Masks take any SVG path: a circle for an avatar, a heart for a greeting card, your brand shape.
- Text handles custom fonts, several lines, alignment and stroke.
- Export raises resolution with
pixelRatio. The import and export guide lists every format.
Custom side panels, a branded toolbar and locked templates are covered in the side panel guide and the user roles API.

Where teams use it
- E-commerce and print-on-demand. A customer personalizes a t-shirt or mug on the listing page, sees it on the product mockup, and the order ships with the PNG they designed.
- Marketing and creator tools. Users make social posts, ad variants and thumbnails inside the app where their brand assets live.
- Social and community platforms. Profile-image cropping, story stickers, watermark overlays.
- Education and document tools. Users annotate screenshots, blur sensitive regions, and add arrows and callouts before sharing or printing.
In each case the user stays in your product, and you keep the design as data. A saved design can be reopened, resized into variants or reprinted.
Build it yourself, or license it
A senior engineer can stand up cropping and basic text on a canvas in about two weeks. Undo, multi-select transforms, font loading, filters and reliable PNG and PDF export take months, and the maintenance continues as browsers and fonts change. The HTML canvas image editor post lists that work item by item.
With Polotno you pay a license fee and integrate in days. The design JSON follows a documented schema, and you can render on your own servers.
