file2bin is a single-file web app (index.html) that converts files to and from .bin (hex), with optional browser-side encryption.
Current UI languages: Chinese (zh-CN) and English (en-US).
- Single-file app: HTML, CSS, and JavaScript are all in
index.html - Local processing in the browser (no backend required)
- Built-in multilingual UI (
zh-CNanden-US) - Two-way conversion:
- file →
.bin(hex) .bin(hex) → file
- file →
- Optional encryption via Web Crypto API (
aes-256-gcm+pbkdf2) - Mobile-first layout (max content width: 600px)
- Runtime i18n is implemented with a lightweight in-file dictionary (
messages) and translation helper (t()), with no build step. - Locale detection priority:
?lang=...in URLlocalStorage.file2bin_localenavigator.language- fallback to
zh-CN
- You can switch language in the page header and the choice is persisted in local storage.
- A modern browser with Web Crypto API support
- Secure Context is required for encryption/decryption (
https://orhttp://localhost)
Open index.html in your browser.
Note: On
file://, encryption/decryption may be unavailable in some browsers becausecrypto.subtlerequires a Secure Context.
python3 -m http.server 8080Then visit http://localhost:8080/.
- File processing is local to your browser session.
- Use a strong password when enabling encryption.
- If you lose the password, encrypted data cannot be recovered.
- Very large files may consume significant browser memory.
- This project currently has no automated tests.
.
├── index.html # main app (runtime file)
├── README.md
├── .gitignore
└── LICENSE
MIT License - see LICENSE