HTML Trình mã hóa/Trình giải mã
Mã hóa text to HTML entities or decode HTML entities back to text. Handles & < > " '.
Cách sử dụng
Nhập dữ liệu ở trên. Kết quả tự động cập nhật. Dùng nút sao chép để lưu kết quả.
Câu hỏi thường gặp
Câu hỏi thường gặp đang hiển thị bằng tiếng Anh trong khi bản dịch được hoàn thiện.
Which HTML entities are handled?
& < > " and ' are encoded to their entity equivalents.
Is my text uploaded to a server?
No. All encoding and decoding happens locally in your browser. Your text never leaves your device, making this safe for sensitive content.
What is the difference between encoding and escaping?
In the HTML context they refer to the same operation: replacing special characters with entity references. Encoding is the general term; escaping emphasizes the security purpose — preventing raw text from being interpreted as markup, which is the primary defense against XSS attacks.