I Love Tools

ilovetools.net
Image to Word | OCR Tool

Image to Word

Extract text from images using advanced OCR technology. Supports English, Bangla, Hindi, and more.

Upload Image

Drop your image here

or click to browse files

Supported: JPG, PNG, BMP, TIFF (Max 10MB)

Language Selection

Select the language used in your image for better accuracy.

For Bangla and Hindi, ensure the text in your image is clear and properly oriented for best results.

Extracted Text

Extracted text will appear here

Upload an image containing text and click "Extract Text from Image" to convert it to editable text.

OCR Extracted Text

Language: ${lang}

Confidence: ${conf}

Extracted on: ${date}

Source: Image to Word OCR Tool

${txt.replace(/\n/g, '
')}
`; const blob = new Blob([html], { type: 'application/msword' }); const url = URL.createObjectURL(blob); const a = document.createElement('a'); a.href = url; a.download = `OCR_${lang}_${Date.now()}.doc`; document.body.appendChild(a); a.click(); setTimeout(() => { document.body.removeChild(a); URL.revokeObjectURL(url); }, 200); showNotification('Word document downloaded.', 'success'); }); // ============================================================ // Download TXT // ============================================================ downloadTxtBtn.addEventListener('click', () => { const txt = textOutput.textContent.trim(); if (!txt || txt === '(No text detected)') { showNotification('No text to download.', 'info'); return; } const lang = languageNames[selectedLanguage] || 'Unknown'; const conf = ocrResult?.data?.confidence ? ocrResult.data.confidence.toFixed(1) + '%' : 'N/A'; const date = new Date().toLocaleString(); const content = `OCR EXTRACTED TEXT ============================= Language: ${lang} Confidence: ${conf} Extracted on: ${date} ============================= ${txt} ============================= Generated by Image to Word OCR Tool · Tesseract.js`; const blob = new Blob([content], { type: 'text/plain' }); const url = URL.createObjectURL(blob); const a = document.createElement('a'); a.href = url; a.download = `OCR_${lang}_${Date.now()}.txt`; document.body.appendChild(a); a.click(); setTimeout(() => { document.body.removeChild(a); URL.revokeObjectURL(url); }, 200); showNotification('Text file downloaded.', 'success'); }); // ============================================================ // Reset All // ============================================================ function resetApplication() { selectedImage = null; ocrResult = null; isProcessing = false; imagePreview.src = ''; previewContainer.classList.add('hidden'); fileName.textContent = ''; processBtn.disabled = true; dropZone.classList.remove('has-image'); resetFileInput(); textOutput.textContent = ''; textOutputContainer.classList.add('hidden'); initialState.classList.remove('hidden'); confidenceInfo.classList.add('hidden'); progressContainer.classList.add('hidden'); selectedLanguage = 'eng'; setActiveLanguage('eng'); applyLanguageStyling('eng'); showNotification('Application reset.', 'success'); } globalResetBtn.addEventListener('click', resetApplication); // ============================================================ // Init // ============================================================ setActiveLanguage('eng'); processBtn.disabled = true; // Welcome notification window.addEventListener('DOMContentLoaded', () => { setTimeout(() => { showNotification('Welcome to Image to Word! Upload an image to get started.', 'info'); }, 600); });
error: Sorry, stealing another person's content is not a good practice.
Scroll to Top