{"id":281,"date":"2025-07-26T08:55:49","date_gmt":"2025-07-26T08:55:49","guid":{"rendered":"https:\/\/vijaypandit.in\/?page_id=281"},"modified":"2025-07-26T11:42:17","modified_gmt":"2025-07-26T11:42:17","slug":"text-case-converter","status":"publish","type":"page","link":"https:\/\/vijaypandit.in\/?page_id=281","title":{"rendered":"Text Case Converter"},"content":{"rendered":"\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>Text Case Converter Tool &#8211; Convert Text to Upper, Lower, Title Case<\/title>\n    <meta name=\"description\" content=\"Free online text case converter tool. Convert text to uppercase, lowercase, title case, camelCase, and more. Perfect for formatting content and coding.\">\n    <style>\n        \/* GeneratePress Text Case Converter - Matching Original Style *\/\n        .gp-caseconverter-container {\n            max-width: 1200px !important;\n            margin: 20px auto !important;\n            background: #f5f5f5 !important;\n            border-radius: 8px !important;\n            overflow: hidden !important;\n            font-family: \"Segoe UI\", sans-serif !important;\n            padding: 30px !important;\n        }\n\n        .gp-caseconverter-header {\n            text-align: center !important;\n            margin-bottom: 30px !important;\n        }\n\n        .gp-caseconverter-title {\n            color: #000 !important;\n            margin: 0 0 15px 0 !important;\n            font-size: 2.5em !important;\n            font-weight: 900 !important;\n            font-family: \"Segoe UI\", sans-serif !important;\n            display: flex !important;\n            align-items: center !important;\n            justify-content: center !important;\n            gap: 15px !important;\n        }\n\n        .gp-caseconverter-icon {\n            background: #4a90e2 !important;\n            color: white !important;\n            padding: 10px 15px !important;\n            border-radius: 8px !important;\n            font-size: 0.6em !important;\n            font-weight: 900 !important;\n            letter-spacing: 1px !important;\n        }\n\n        .gp-caseconverter-subtitle {\n            color: #000 !important;\n            margin: 0 0 25px 0 !important;\n            font-size: 1.2em !important;\n            font-weight: 700 !important;\n            font-family: \"Segoe UI\", sans-serif !important;\n        }\n\n        .gp-caseconverter-description {\n            background: #CBCADC !important;\n            border-left: 4px solid #D97757 !important;\n            padding: 20px 25px !important;\n            margin: 0 0 30px 0 !important;\n            font-size: 16px !important;\n            line-height: 1.6 !important;\n            color: #000 !important;\n            font-weight: 700 !important;\n            font-family: \"Segoe UI\", sans-serif !important;\n        }\n\n        .gp-caseconverter-main {\n            display: grid !important;\n            grid-template-columns: 1fr 1fr !important;\n            gap: 30px !important;\n            margin-bottom: 30px !important;\n        }\n\n        .gp-caseconverter-section {\n            background: white !important;\n            padding: 30px !important;\n            border-radius: 8px !important;\n            box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;\n        }\n\n        .gp-caseconverter-section-title {\n            color: #000 !important;\n            margin: 0 0 20px 0 !important;\n            font-size: 1.3em !important;\n            font-weight: 900 !important;\n            font-family: \"Segoe UI\", sans-serif !important;\n        }\n\n        .gp-caseconverter-textarea {\n            width: 100% !important;\n            height: 250px !important;\n            padding: 15px !important;\n            border: 2px solid #e1e1e1 !important;\n            border-radius: 6px !important;\n            font-size: 14px !important;\n            font-family: \"Segoe UI\", sans-serif !important;\n            font-weight: 700 !important;\n            resize: vertical !important;\n            box-sizing: border-box !important;\n            transition: border-color 0.3s ease !important;\n            line-height: 1.6 !important;\n            color: #000 !important;\n        }\n\n        .gp-caseconverter-textarea:focus {\n            outline: none !important;\n            border-color: #D97757 !important;\n            box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.1) !important;\n        }\n\n        .gp-caseconverter-textarea::placeholder {\n            color: #666 !important;\n            font-weight: 400 !important;\n        }\n\n        .gp-caseconverter-output {\n            width: 100% !important;\n            min-height: 250px !important;\n            padding: 15px !important;\n            border: 2px solid #e1e1e1 !important;\n            border-radius: 6px !important;\n            font-size: 14px !important;\n            font-family: \"Segoe UI\", sans-serif !important;\n            font-weight: 700 !important;\n            box-sizing: border-box !important;\n            line-height: 1.6 !important;\n            color: #000 !important;\n            background: #f8f9fa !important;\n            white-space: pre-wrap !important;\n            word-wrap: break-word !important;\n            overflow-y: auto !important;\n        }\n\n        .gp-caseconverter-modes {\n            display: grid !important;\n            grid-template-columns: repeat(2, 1fr) !important;\n            gap: 10px !important;\n            margin-bottom: 20px !important;\n        }\n\n        .gp-caseconverter-mode-btn {\n            background: white !important;\n            color: #000 !important;\n            border: 2px solid #e1e1e1 !important;\n            padding: 12px 15px !important;\n            border-radius: 6px !important;\n            cursor: pointer !important;\n            font-size: 13px !important;\n            font-weight: 700 !important;\n            transition: all 0.3s ease !important;\n            text-align: center !important;\n            font-family: \"Segoe UI\", sans-serif !important;\n        }\n\n        .gp-caseconverter-mode-btn:hover {\n            border-color: #D97757 !important;\n            background: #f8f9fa !important;\n        }\n\n        .gp-caseconverter-mode-btn.active {\n            background: #D97757 !important;\n            color: white !important;\n            border-color: #D97757 !important;\n        }\n\n        .gp-caseconverter-stats {\n            display: grid !important;\n            grid-template-columns: repeat(2, 1fr) !important;\n            gap: 15px !important;\n            margin-bottom: 20px !important;\n        }\n\n        .gp-caseconverter-stat-item {\n            text-align: center !important;\n            padding: 15px !important;\n            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;\n            border-radius: 6px !important;\n            border: 1px solid #dee2e6 !important;\n        }\n\n        .gp-caseconverter-stat-number {\n            font-size: 1.8em !important;\n            font-weight: 900 !important;\n            color: #D97757 !important;\n            display: block !important;\n            margin-bottom: 5px !important;\n            font-family: \"Segoe UI\", sans-serif !important;\n        }\n\n        .gp-caseconverter-stat-label {\n            font-size: 0.9em !important;\n            color: #000 !important;\n            font-weight: 700 !important;\n            font-family: \"Segoe UI\", sans-serif !important;\n        }\n\n        .gp-caseconverter-buttons {\n            display: grid !important;\n            grid-template-columns: repeat(3, 1fr) !important;\n            gap: 10px !important;\n        }\n\n        .gp-caseconverter-btn {\n            background: #000 !important;\n            color: white !important;\n            border: none !important;\n            padding: 12px 15px !important;\n            border-radius: 6px !important;\n            cursor: pointer !important;\n            font-size: 13px !important;\n            font-weight: 700 !important;\n            transition: all 0.3s ease !important;\n            display: flex !important;\n            align-items: center !important;\n            justify-content: center !important;\n            gap: 5px !important;\n            font-family: \"Segoe UI\", sans-serif !important;\n        }\n\n        .gp-caseconverter-btn:hover {\n            background: #333 !important;\n            transform: translateY(-2px) !important;\n            box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;\n        }\n\n        .gp-caseconverter-btn:active {\n            transform: translateY(0) !important;\n        }\n\n        \/* Mobile Responsive *\/\n        @media (max-width: 768px) {\n            .gp-caseconverter-container {\n                margin: 10px !important;\n                padding: 20px !important;\n            }\n\n            .gp-caseconverter-title {\n                font-size: 2em !important;\n                flex-direction: column !important;\n                gap: 10px !important;\n            }\n\n            .gp-caseconverter-main {\n                grid-template-columns: 1fr !important;\n                gap: 20px !important;\n            }\n\n            .gp-caseconverter-section {\n                padding: 20px !important;\n            }\n\n            .gp-caseconverter-textarea,\n            .gp-caseconverter-output {\n                height: 200px !important;\n            }\n\n            .gp-caseconverter-modes {\n                grid-template-columns: 1fr !important;\n            }\n\n            .gp-caseconverter-buttons {\n                grid-template-columns: 1fr !important;\n            }\n        }\n\n        \/* Success Animation *\/\n        .gp-caseconverter-success {\n            background: #28a745 !important;\n            transform: scale(0.95) !important;\n        }\n\n        .gp-caseconverter-success:hover {\n            background: #28a745 !important;\n        }\n\n        .gp-caseconverter-pulse {\n            animation: gpCaseConverterPulse 0.3s ease-out !important;\n        }\n\n        @keyframes gpCaseConverterPulse {\n            0% { transform: scale(1); }\n            50% { transform: scale(1.05); }\n            100% { transform: scale(1); }\n        }\n    <\/style>\n<\/head>\n<body>\n    <div class=\"gp-caseconverter-container\">\n        <div class=\"gp-caseconverter-header\">\n            <h2 class=\"gp-caseconverter-title\">\n                <span class=\"gp-caseconverter-icon\">Abc<\/span>\n                Text Case Converter Tool\n            <\/h2>\n            <p class=\"gp-caseconverter-subtitle\">Professional Text Case Converter Tool<\/p>\n            <div class=\"gp-caseconverter-description\" id=\"gpCaseConverterDescription\">\n                Did you know? Proper text case formatting can improve readability by up to 35%! Different cases serve different purposes in writing and coding.\n            <\/div>\n        <\/div>\n\n        <div class=\"gp-caseconverter-main\">\n            <div class=\"gp-caseconverter-section\">\n                <h3 class=\"gp-caseconverter-section-title\">Enter Your Text<\/h3>\n                <textarea \n                    class=\"gp-caseconverter-textarea\" \n                    id=\"gpCaseConverterInput\"\n                    placeholder=\"Paste or type your text here to get instant case conversion...\"\n                    aria-label=\"Text input for case conversion\"><\/textarea>\n            <\/div>\n\n            <div class=\"gp-caseconverter-section\">\n                <h3 class=\"gp-caseconverter-section-title\">Converted Output<\/h3>\n                <div class=\"gp-caseconverter-output\" id=\"gpCaseConverterOutput\">Your converted text will appear here&#8230;<\/div>\n\n                <div class=\"gp-caseconverter-modes\">\n                    <button class=\"gp-caseconverter-mode-btn active\" onclick=\"gpSetCaseMode('uppercase')\" data-mode=\"uppercase\">\n                        UPPERCASE\n                    <\/button>\n                    <button class=\"gp-caseconverter-mode-btn\" onclick=\"gpSetCaseMode('lowercase')\" data-mode=\"lowercase\">\n                        lowercase\n                    <\/button>\n                    <button class=\"gp-caseconverter-mode-btn\" onclick=\"gpSetCaseMode('titlecase')\" data-mode=\"titlecase\">\n                        Title Case\n                    <\/button>\n                    <button class=\"gp-caseconverter-mode-btn\" onclick=\"gpSetCaseMode('sentencecase')\" data-mode=\"sentencecase\">\n                        Sentence case\n                    <\/button>\n                    <button class=\"gp-caseconverter-mode-btn\" onclick=\"gpSetCaseMode('camelcase')\" data-mode=\"camelcase\">\n                        camelCase\n                    <\/button>\n                    <button class=\"gp-caseconverter-mode-btn\" onclick=\"gpSetCaseMode('snakecase')\" data-mode=\"snakecase\">\n                        snake_case\n                    <\/button>\n                <\/div>\n\n                <div class=\"gp-caseconverter-stats\">\n                    <div class=\"gp-caseconverter-stat-item\">\n                        <span class=\"gp-caseconverter-stat-number\" id=\"gpCaseConverterChars\">0<\/span>\n                        <div class=\"gp-caseconverter-stat-label\">CHARACTERS<\/div>\n                    <\/div>\n                    <div class=\"gp-caseconverter-stat-item\">\n                        <span class=\"gp-caseconverter-stat-number\" id=\"gpCaseConverterWords\">0<\/span>\n                        <div class=\"gp-caseconverter-stat-label\">WORDS<\/div>\n                    <\/div>\n                    <div class=\"gp-caseconverter-stat-item\">\n                        <span class=\"gp-caseconverter-stat-number\" id=\"gpCaseConverterLines\">0<\/span>\n                        <div class=\"gp-caseconverter-stat-label\">LINES<\/div>\n                    <\/div>\n                    <div class=\"gp-caseconverter-stat-item\">\n                        <span class=\"gp-caseconverter-stat-number\" id=\"gpCaseConverterCaps\">0<\/span>\n                        <div class=\"gp-caseconverter-stat-label\">CAPITALS<\/div>\n                    <\/div>\n                <\/div>\n\n                <div class=\"gp-caseconverter-buttons\">\n                    <button class=\"gp-caseconverter-btn\" onclick=\"gpCaseConverterCopyText()\" id=\"gpCaseConverterCopyBtn\">\n                        \ud83d\udccb COPY TEXT\n                    <\/button>\n                    <button class=\"gp-caseconverter-btn\" onclick=\"gpCaseConverterClearText()\">\n                        \ud83d\uddd1\ufe0f CLEAR ALL\n                    <\/button>\n                    <button class=\"gp-caseconverter-btn\" onclick=\"gpCaseConverterDownloadText()\">\n                        \ud83d\udcbe DOWNLOAD\n                    <\/button>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n\n    <script>\n        \/\/ GeneratePress Text Case Converter - Original Style\n        class GPTextCaseConverter {\n            constructor() {\n                this.textarea = document.getElementById('gpCaseConverterInput');\n                this.output = document.getElementById('gpCaseConverterOutput');\n                this.currentMode = 'uppercase';\n                this.descriptions = [\n                    \"Did you know? Proper text case formatting can improve readability by up to 35%! Different cases serve different purposes in writing and coding.\",\n                    \"Programming insight: camelCase is widely used in JavaScript, while snake_case dominates Python. Choose the right case for your project!\",\n                    \"Typography fact: ALL CAPS text is 10% harder to read than mixed case. Use uppercase sparingly for maximum impact and readability.\",\n                    \"SEO tip: Title Case in headlines can improve click-through rates by 20%. Perfect your blog titles with proper case formatting!\",\n                    \"Accessibility note: Screen readers handle sentence case better than all caps. Consider your audience when choosing text formatting.\",\n                    \"Design principle: Different cases serve different purposes - use them strategically for better user experience and readability.\",\n                    \"Writing standard: Sentence case is preferred for body text and descriptions, making content more approachable and easier to scan.\",\n                    \"Developer tip: Consistent case conventions in code improve team collaboration and reduce bugs significantly!\"\n                ];\n                this.currentDescIndex = 0;\n                this.init();\n            }\n\n            init() {\n                this.textarea.addEventListener('input', () => this.gpProcessText());\n                this.textarea.addEventListener('paste', () => setTimeout(() => this.gpProcessText(), 10));\n                this.gpStartDescRotation();\n                this.gpProcessText();\n            }\n\n            gpProcessText() {\n                const text = this.textarea.value;\n                const converted = this.gpConvertCase(text, this.currentMode);\n                \n                this.output.textContent = converted || 'Your converted text will appear here...';\n                this.gpUpdateStats(text);\n            }\n\n            gpConvertCase(text, mode) {\n                if (!text.trim()) return '';\n\n                switch (mode) {\n                    case 'uppercase':\n                        return text.toUpperCase();\n                    case 'lowercase':\n                        return text.toLowerCase();\n                    case 'titlecase':\n                        return text.replace(\/\\w\\S*\/g, (txt) => \n                            txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase()\n                        );\n                    case 'sentencecase':\n                        return text.toLowerCase().replace(\/(^\\w|\\.\\s+\\w)\/g, (txt) => \n                            txt.toUpperCase()\n                        );\n                    case 'camelcase':\n                        return text.replace(\/(?:^\\w|[A-Z]|\\b\\w)\/g, (word, index) => \n                            index === 0 ? word.toLowerCase() : word.toUpperCase()\n                        ).replace(\/\\s+\/g, '');\n                    case 'snakecase':\n                        return text.toLowerCase().replace(\/\\s+\/g, '_').replace(\/[^\\w_]\/g, '');\n                    default:\n                        return text;\n                }\n            }\n\n            gpUpdateStats(text) {\n                const chars = text.length;\n                const words = text.trim() === '' ? 0 : text.trim().split(\/\\s+\/).length;\n                const lines = text === '' ? 0 : text.split('\\n').length;\n                const caps = (text.match(\/[A-Z]\/g) || []).length;\n\n                this.gpSetNumber('gpCaseConverterChars', chars);\n                this.gpSetNumber('gpCaseConverterWords', words);\n                this.gpSetNumber('gpCaseConverterLines', lines);\n                this.gpSetNumber('gpCaseConverterCaps', caps);\n            }\n\n            gpSetNumber(id, value) {\n                const el = document.getElementById(id);\n                if (el && el.textContent != value) {\n                    el.classList.add('gp-caseconverter-pulse');\n                    el.textContent = value.toLocaleString();\n                    setTimeout(() => el.classList.remove('gp-caseconverter-pulse'), 300);\n                }\n            }\n\n            gpStartDescRotation() {\n                setInterval(() => {\n                    const desc = document.getElementById('gpCaseConverterDescription');\n                    desc.style.opacity = '0.5';\n                    setTimeout(() => {\n                        this.currentDescIndex = (this.currentDescIndex + 1) % this.descriptions.length;\n                        desc.textContent = this.descriptions[this.currentDescIndex];\n                        desc.style.opacity = '1';\n                    }, 200);\n                }, 6000);\n            }\n\n            gpSetMode(mode) {\n                this.currentMode = mode;\n                this.gpProcessText();\n            }\n        }\n\n        \/\/ Global functions\n        function gpSetCaseMode(mode) {\n            document.querySelectorAll('.gp-caseconverter-mode-btn').forEach(btn => {\n                btn.classList.remove('active');\n            });\n            document.querySelector(`[data-mode=\"${mode}\"]`).classList.add('active');\n            window.gpCaseConverter.gpSetMode(mode);\n        }\n\n        function gpCaseConverterCopyText() {\n            const output = document.getElementById('gpCaseConverterOutput');\n            const btn = document.getElementById('gpCaseConverterCopyBtn');\n            const text = output.textContent;\n            \n            if (!text || text === 'Your converted text will appear here...') {\n                alert('No converted text to copy!');\n                return;\n            }\n\n            if (navigator.clipboard) {\n                navigator.clipboard.writeText(text).then(() => {\n                    gpCaseConverterShowSuccess(btn, '\u2705 COPIED!');\n                });\n            } else {\n                const textarea = document.createElement('textarea');\n                textarea.value = text;\n                document.body.appendChild(textarea);\n                textarea.select();\n                document.execCommand('copy');\n                document.body.removeChild(textarea);\n                gpCaseConverterShowSuccess(btn, '\u2705 COPIED!');\n            }\n        }\n\n        function gpCaseConverterClearText() {\n            if (confirm('Are you sure you want to clear all text?')) {\n                document.getElementById('gpCaseConverterInput').value = '';\n                document.getElementById('gpCaseConverterInput').focus();\n                window.gpCaseConverter.gpProcessText();\n            }\n        }\n\n        function gpCaseConverterDownloadText() {\n            const output = document.getElementById('gpCaseConverterOutput');\n            const text = output.textContent;\n            \n            if (!text || text === 'Your converted text will appear here...') {\n                alert('No converted text to download!');\n                return;\n            }\n\n            const blob = new Blob([text], { type: 'text\/plain' });\n            const url = URL.createObjectURL(blob);\n            const a = document.createElement('a');\n            a.href = url;\n            a.download = `case-converted-text-${new Date().toISOString().split('T')[0]}.txt`;\n            a.click();\n            URL.revokeObjectURL(url);\n        }\n\n        function gpCaseConverterShowSuccess(btn, text) {\n            const original = btn.innerHTML;\n            btn.innerHTML = text;\n            btn.classList.add('gp-caseconverter-success');\n            setTimeout(() => {\n                btn.innerHTML = original;\n                btn.classList.remove('gp-caseconverter-success');\n            }, 2000);\n        }\n\n        \/\/ Initialize\n        document.addEventListener('DOMContentLoaded', () => {\n            window.gpCaseConverter = new GPTextCaseConverter();\n        });\n    <\/script>\n<\/body>\n<\/html>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Text Case Converter Tool &#8211; Convert Text to Upper, Lower, Title Case Abc Text Case Converter Tool Professional Text Case &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Text Case Converter\" class=\"read-more button\" href=\"https:\/\/vijaypandit.in\/?page_id=281#more-281\" aria-label=\"More on Text Case Converter\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-281","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/vijaypandit.in\/index.php?rest_route=\/wp\/v2\/pages\/281","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vijaypandit.in\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/vijaypandit.in\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/vijaypandit.in\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vijaypandit.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=281"}],"version-history":[{"count":3,"href":"https:\/\/vijaypandit.in\/index.php?rest_route=\/wp\/v2\/pages\/281\/revisions"}],"predecessor-version":[{"id":308,"href":"https:\/\/vijaypandit.in\/index.php?rest_route=\/wp\/v2\/pages\/281\/revisions\/308"}],"wp:attachment":[{"href":"https:\/\/vijaypandit.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}