Công cụ đổi kiểu chữ giữa chữ hoa, chữ thường, Title Case, camelCase, snake_case, kebab-case và CONSTANT_CASE, kèm chức năng bỏ dấu tiếng Việt và chuẩn hoá khoảng trắng. Dán một tiêu đề hay một danh sách tên biến là có ngay dạng cần dùng. Chủ yếu phục vụ người viết code, người đặt tên cột trong database và người dọn dữ liệu từ Excel.
Phần bỏ dấu đáng chú ý về mặt kỹ thuật. Hầu hết chữ có dấu phân rã được theo Unicode NFD thành ký tự gốc cộng dấu, nên chỉ cần xoá dấu là xong. Nhưng đ và Đ thì không, vì chúng là ký tự riêng chứ không phải d cộng nét gạch. Công cụ xử lý riêng hai ký tự này, nếu không sẽ ra chữ sai khi tạo slug.
Cách sử dụng
- Dán văn bản vào ô nhập liệu.
- Chọn kiểu chữ đích trong danh sách chuyển đổi.
- Bật tuỳ chọn Bỏ dấu nếu cần tạo slug hoặc tên biến.
- Kiểm tra kết quả ở khung bên phải.
- Bấm Sao chép để lấy nội dung đã chuyển.
A converter between uppercase, lowercase, Title Case, camelCase, snake_case, kebab-case and CONSTANT_CASE, with a Vietnamese diacritic stripper and whitespace normaliser attached. Paste a heading or a list of names and get the form you need. It mostly serves programmers, people naming database columns, and anyone cleaning up a spreadsheet export.
The diacritic stripping has a wrinkle worth knowing. Most accented letters decompose under Unicode NFD into a base letter plus a combining mark, so removing the marks is enough. đ and Đ do not: they are independent letters, not d with a stroke. The tool maps those two explicitly, otherwise a slug built from Vietnamese text comes out wrong.
How to use
- Paste your text into the input box.
- Choose the target case from the conversion list.
- Enable the strip-diacritics option if you need a slug or a variable name.
- Check the output panel.
- Press Copy to take the converted text.