Input

Decoded Output

What Is the JavaScript String Decoder?

This JavaScript String Decoder converts escaped and encoded strings inside JavaScript. Paste obfuscated or minified code; get readable output for debugging and analysis. The ECMAScript spec defines the language.

This tool runs entirely in your browser. Nothing is sent to a server. For obfuscating code, use JavaScript Obfuscator. For formatting only, use JavaScript Formatter. For validation, use JavaScript Validator.

How to Decode JavaScript Strings

1

Paste or Upload

Paste JavaScript with escaped strings (hex, unicode, or Base64-like literals) and review the decoded output instantly.

2

View Decoded Output

The tool decodes \xNN and \uNNNN escapes, attempts safe Base64 literal decoding, and formats the result for readability.

3

Copy or Download

Use Copy or Download to get the result. For running code, use JavaScript Console.

JavaScript String Decoder Example

Here is an example of decoding escaped JavaScript strings.

Example: Escaped and Base64-like literals

Encoded input:

Input

Decoded output:

Output

When the JavaScript String Decoder Helps

Use this tool when code hides payloads in escaped literals. It is especially useful for quickly revealing messages, URLs, or script fragments embedded as encoded strings.

Frequently Asked Questions

Is my data private?

Yes. Decoding runs entirely in your browser. No data is sent to any server.

What encodings are supported?

Hex (\\xNN), unicode (\\uNNNN), and many plain Base64 literals. Complex runtime decoders may still need manual review.

Can it fully reverse obfuscation?

It depends on the obfuscation. Simple patterns are reversed. Heavy obfuscation may leave some code hard to read.

String Decoder vs Deobfuscator?

String Decoder focuses on literal decoding. Deobfuscator targets broader code cleanup and formatting.

Is it legal to deobfuscate?

Use for debugging your own code, security research, or with permission. Check licenses and terms for third-party code.

Related Tools

ECMAScript. MDN JavaScript. Terser. Chrome DevTools. Babel.