菜单

全角半角转换

支持全角英文字母、数字、标点符号与半角字符互转,可选择转换范围(仅数字、仅字母、仅标点或全部),适合排版和文本规范化处理。

全角半角转换

在简体中文与繁体中文之间一键互转,自动处理常见词汇。

输入文本

转换选项

转换结果

,'%':'%','&':'&',''':"'",'(':'(',')':')','*':'*','+':'+',',':',','-':'-','.':'.','/':'/',':':':',';':';','<':'<','=':'=','>':'>','?':'?','@':'@','[':'[','\':'\\',']':']','^':'^','_':'_','`':'`','{':'{','|':'|','}':'}','~':'~'}; if(m[t[i]]){result+=m[t[i]];done=true;} } if(!done)result+=t[i]; } document.getElementById('output').value=result; } function toFull(){ var t=document.getElementById('input').value; var optNum=document.getElementById('optNum').checked; var optAlpha=document.getElementById('optAlpha').checked; var optPunct=document.getElementById('optPunct').checked; var result=''; for(var i=0;i=0x30&&c<=0x39){result+=String.fromCharCode(c-0x30+0xff10);done=true;} if(!done&&optAlpha&&c>=0x41&&c<=0x5a){result+=String.fromCharCode(c-0x41+0xff21);done=true;} if(!done&&optAlpha&&c>=0x61&&c<=0x7a){result+=String.fromCharCode(c-0x61+0xff41);done=true;} if(!done&&optPunct){ var m={' ':' ','!':'!','"':'"','#':'#',' :'$','%':'%','&':'&',"'":''','(':'(',')':')','*':'*','+':'+',',':',','-':'-','.':'.','/':'/',':':':',';':';','<':'<','=':'=','>':'>','?':'?','@':'@','[':'[','\\':'\',']':']','^':'^','_':'_','`':'`','{':'{','|':'|','}':'}','~':'~'}; if(m[t[i]]){result+=m[t[i]];done=true;} } if(!done)result+=t[i]; } document.getElementById('output').value=result; } function copyOutput(){ var t=document.getElementById('output').value; if(!t)return; navigator.clipboard.writeText(t).then(function(){ if(window.CT&&CT.showToast)CT.showToast('已复制'); }).catch(function(){}); } ;window.toHalf=toHalf;window.toFull=toFull;window.copyOutput=copyOutput;();