Real-time image-to-ASCII conversion with webcam support, batch processing, and multiple character sets.
Click or drag & drop an image
Supported formats: JPEG, JPG, PNG, GIF, WEBP
Max file size: 5MB
import {
AsciiArtGenerator,
useAsciiArt,
useWebcamAsciiArt,
useBatchAsciiArt
} from 'react-ascii-ui';function MyApp() {
return (
<AsciiArtGenerator
options={{
width: 80,
height: 40,
style: 'detailed',
contrast: 1.2,
brightness: 0.8
}}
showControls={true}
showWebcam={true}
onGenerate={(result) => console.log(result)}
/>
);
}function CustomConverter() {
const { convertImage, isProcessing } = useAsciiArt();
const handleFileUpload = async (file) => {
const result = await convertImage(file, {
width: 100,
height: 50,
style: 'block'
});
console.log(result.ascii);
};
return (
<div>
<input type="file" onChange={handleFileUpload} />
{isProcessing && <p>Converting...</p>}
</div>
);
} .:-=+*#%@ .`'-_:;^,"~=+<>i!lI?/\|(){}[]rcvunxzjftLCJUYXZO0Qoahkbdpqwm*WMB8&%$#@ â–‘â–’â–“â–ˆ â–ˆFor best results with photographs, use the 'detailed' character set with medium width (60-100 characters). For logos or simple graphics, try the 'simple' or 'block' character sets. The webcam feature works best in good lighting conditions.