Word Case Converter – Change Text to Uppercase, Lowercase & Title Case Online
Free Word Case Converter to change text into uppercase, lowercase, title case, sentence case & more instantly. Fast, secure & SEO-friendly tool.
Text Case Converter Tool
Upload files or enter text, select conversion options, and apply formatting
Drag & drop your DOC, PDF, or text file here or click to browse
Conversion Complete
How to Use the Word Case Converter
Upload Your File or Enter Text
Click the "Browse Files" button or drag and drop your DOC, DOCX, PDF, or TXT file. Alternatively, paste your text directly into the text area.
Select Conversion Options
Choose your desired text case (UPPERCASE, lowercase, Sentence case, etc.) and output format (TXT, HTML, PDF, or DOCX).
Apply Formatting
Choose whether to apply formatting to the entire document or only selected text. Use the formatting buttons to apply bold, italic, underline, or strikethrough.
Convert Your Text
Click the "Convert Text" button to process your file. The original and converted text will be displayed side by side.
Download Results
Once conversion is complete, click "Download Converted File" to save your transformed text in the selected format with all formatting preserved.
Pro Tips for Best Results
- Selective Formatting: Use "Apply to selected text only" to format specific parts of your document
- Multiple Formats: You can apply multiple formatting styles to the same text
- Clear Formatting: Use the "Clear Formatting" button to remove all formatting from selected text
- Real-time Preview: The converted text area is editable - you can make additional changes before downloading
- File Formats: Formatting is preserved in HTML and DOCX output
/gi); lines.forEach(line => { if (line.trim()) { // Remove HTML tags and extract text with formatting const textRuns = parseHtmlToTextRuns(line); if (textRuns.length > 0) { paragraphs.push(new Paragraph({ children: textRuns, spacing: { after: 200 } })); } } }); // Create the document const doc = new Document({ sections: [{ properties: {}, children: paragraphs }] }); // Generate the DOCX file docx.Packer.toBlob(doc).then(blob => { convertedBlob = blob; }).catch(error => { console.error('Error creating DOCX:', error); // Fallback to simple text DOCX createSimpleDocxBlob(htmlContent); }); } catch (error) { console.error('Error in DOCX creation:', error); // Fallback to simple text DOCX createSimpleDocxBlob(htmlContent); } } function parseHtmlToTextRuns(html) { const { TextRun } = docx; const textRuns = []; // Temporary div to parse HTML const tempDiv = document.createElement('div'); tempDiv.innerHTML = html; // Recursive function to traverse nodes function traverseNodes(node) { if (node.nodeType === Node.TEXT_NODE) { if (node.textContent.trim()) { textRuns.push(new TextRun({ text: node.textContent, bold: node.parentElement ? (node.parentElement.tagName === 'STRONG' || node.parentElement.tagName === 'B') : false, italics: node.parentElement ? (node.parentElement.tagName === 'EM' || node.parentElement.tagName === 'I') : false, underline: node.parentElement ? (node.parentElement.tagName === 'U') : false, strike: node.parentElement ? (node.parentElement.tagName === 'S' || node.parentElement.tagName === 'STRIKE') : false })); } } else if (node.nodeType === Node.ELEMENT_NODE) { for (let child of node.childNodes) { traverseNodes(child); } } } traverseNodes(tempDiv); return textRuns; } function createSimpleDocxBlob(htmlContent) { // Fallback method for DOCX creation const tempDiv = document.createElement('div'); tempDiv.innerHTML = htmlContent; const textContent = tempDiv.textContent || tempDiv.innerText || ''; // Create a simple DOCX structure const docxContent = `
