- LuzineDebug
- Tools
- Base64 & URL encoder
Encode and decode Base64, URL and HTML online
Encode and decode Base64 (standard and URL-safe), URL, HTML entities and Unicode escapes, with proper UTF-8 handling. Everything happens in your browser.
Which encoding for which use?
- Base64: binary data inside text (attachments,
data:URIs, theAuthorization: Basicheader). - Base64URL: the same without
+,/or=, safe in a URL. This is the JWT format. - URL (component): a parameter value (
encodeURIComponent); Full URL keeps/ ? & =(encodeURI). - HTML entities: show text in a page without it being parsed as HTML.
Frequently asked questions
Why does `atob()` fail with “The string to be decoded is not correctly encoded”?
The string holds characters outside Base64 (spaces, line breaks, the - or _ of Base64URL) or its length is not a multiple of 4. The tool cleans these cases and points to the faulty character.
Why do accents turn into “é” after decoding?
The text was encoded as UTF-8 but read back as Latin-1 (which is what atob() alone does). The bytes must be decoded with TextDecoder as UTF-8, as this tool does.
Is Base64 encryption?
No. Base64 is a plain encoding anyone can reverse: never use it to hide a password or a key.
Other tools
Error finder
Paste an error message or a log: the tool recognises the error and opens the right fix.
JSON validator
Validate, format and minify JSON, with the exact line and column of the error.
Regex tester
Test a regular expression live: highlighted matches, groups, replacement.
JWT decoder
Decode a JWT: header, payload, readable expiry dates and whether the token has expired.
HTTP status codes
All the common HTTP codes (401, 403, 404, 419, 429, 500, 502…): meaning, causes and what to do.
Text diff
Compare two versions line by line: additions, deletions, invisible whitespace.
Hash generator
Computes MD5, SHA-1, SHA-256, SHA-384, SHA-512 and HMAC of a text or file, and compares with an expected hash.
Timestamp converter
Converts a Unix timestamp (seconds, milliseconds, microseconds) to a readable date in any time zone, and back.
Cron explainer
Turns a cron expression into a plain sentence, lists the next runs and flags the traps (day of month AND day of week, time zone).
YAML validator
Validates YAML (docker-compose, GitHub Actions, Kubernetes), shows the faulty line and tabs, and converts it to JSON.
Chmod calculator
Tick the permissions and get 755 or rwxr-xr-x (and back), with the ready-to-copy command and safe presets by use case.
cURL converter
Paste a cURL command (DevTools “Copy as cURL”): get the fetch, axios, Node, PHP (Laravel Http or curl) or Python requests code.
Stack trace formatter
Formats a stack trace (JS, Python, PHP, Java, .NET, Go), separates your code from libraries and points to the line to open first.