String Extractor

Extract ASCII and UTF-16 strings from any binary with byte offsets. Auto-flags IPs, URLs, registry keys, paths and base64. Runs locally, nothing uploaded.

By

Advertisement

Strings Extractor for Binary and Malware Analysis

Drop any file — an executable, a DLL, a memory dump, a firmware image, an unknown attachment — and extract every printable string it contains, with the byte offset of each one and automatic flagging of the strings that matter: IP addresses, URLs, email addresses, Windows and UNC paths, registry keys and base64 blobs. It is the browser equivalent of the Unix strings command, with the triage layer built in, and it runs entirely on your machine. The file is never uploaded, which is the whole point when the file is a malware sample you are not permitted to submit to a third-party service.

Pulling strings out of a binary is the first move in almost every static analysis workflow. Before disassembling anything, you want to know what the sample talks to, where it writes, what it names itself, and whether it is packed. All of that is usually visible in the strings, and it takes seconds rather than hours.

What It Extracts

  • ASCII strings. Runs of printable bytes in the range 0x20–0x7E, terminated by any non-printable byte, at or above your minimum length.
  • UTF-16LE (Unicode) strings. Scanned separately on even byte boundaries, because Windows binaries store most of their interesting text — file paths, registry keys, API arguments — as wide characters that a naive ASCII-only scan misses entirely. Duplicates already found in the ASCII pass are suppressed.
  • Byte offsets. Every string carries the exact offset where it was found, so you can jump straight to that location in a hex editor or a disassembler.
  • Statistics. Total strings, ASCII versus Unicode counts, how many were flagged suspicious, file size and processing time.

The Eight Indicator Patterns

Every extracted string is matched against a set of regular expressions and tagged with the patterns it hits. These are the categories that turn a wall of text into leads:

PatternWhy it is worth flagging
IPv4 addressHard-coded command-and-control endpoints, beacon destinations, internal ranges the sample expects
IPv6 addressThe same, in the form that IPv4-only greps miss
URL (http, https, ftp)Download stages, exfiltration endpoints, update servers
Email addressExfil destinations, ransom contacts, or a developer address left in a build
Windows pathDrop locations and persistence directories — C:\Users\Public, %APPDATA%, \Temp\
UNC pathLateral movement and network share access
Registry keyPersistence via Run keys and services; HKLM, HKCU and the full-length forms are all matched
Base64 blobEncoded payloads, configuration, or an embedded second stage — 40 or more base64 characters in a row is rarely accidental

How to Use It

  1. Drop the file in or use the file picker. Any file type is accepted — the tool reads raw bytes and does not care about the extension.
  2. Set the minimum length. Four is the default and matches the strings command’s conventional threshold. Raise it to 6 or 8 to cut noise on a large binary; drop it to 3 when you are hunting for short tokens and are willing to wade through fragments.
  3. Start with “suspicious only”. This collapses a list of tens of thousands of strings down to the handful carrying indicators, which is the correct first pass on an unknown sample.
  4. Then search. The search box filters live — try http, Run, .dll, CreateProcess, VirtualAlloc, or the name of a product you expect the sample to impersonate.
  5. Filter by encoding. Switch between ASCII, Unicode and all. On Windows samples the Unicode list often contains the real payload configuration.
  6. Export the results to CSV or JSON to attach to a case file or feed into your own tooling.

Reading the Output

A few patterns are worth knowing before you start.

A very short string list on a large file usually means packing. A normal Windows executable of a few hundred kilobytes yields thousands of strings: imported function names, format strings, error messages, resource names. If a 2 MB binary produces two hundred strings, most of it is compressed or encrypted, and the small set you can see is the unpacking stub. That absence is itself a strong indicator.

Import names describe capability. Even without a proper PE parser, the imported API names show up as strings. VirtualAllocEx, WriteProcessMemory and CreateRemoteThread together are process injection. InternetOpenUrlA or WinHttpSendRequest mean network access. CryptEncrypt plus file-enumeration APIs suggests ransomware. IsDebuggerPresent is anti-analysis.

Offsets cluster meaningfully. Strings found close together usually come from the same section — a block of URLs at adjacent offsets is a configuration table, not a coincidence. Note the offset and open the file in a hex editor to see the surrounding structure.

Base64 hits are worth decoding. Copy the flagged blob into a base64 decoder; embedded configuration, PowerShell commands and second-stage payloads are routinely stored that way.

Limits Worth Knowing

String extraction is a first pass, not an analysis. It finds only what is stored in the clear: anything XOR-encoded, RC4’d, stack-constructed one character at a time, or generated at runtime will not appear. Attackers know the technique and defeat it deliberately. It also produces false positives — the base64 pattern matches plenty of ordinary binary data, and any long random-looking run can trip it. Treat every flagged string as a lead to verify, not a conclusion.

The tool works on the whole file in memory, so very large images (multi-gigabyte memory dumps) are limited by your browser’s available RAM rather than by an upload cap.

Related Tools

Continue the triage with the file magic number checker to confirm what the file really is, the entropy analyzer to detect packing, the hex editor to inspect the bytes around an interesting offset, and the hash lookup to check the sample against known indicators.

Frequently Asked Questions

Is my file uploaded to a server?+

No. The file is read as an ArrayBuffer in your browser and scanned there. Nothing is transmitted, which is what makes this usable for samples that cannot legally or safely be submitted to an online scanner.

How is this different from the strings command?+

The core extraction is the same idea, with two additions: UTF-16LE strings are scanned by default rather than requiring a flag, and every result is automatically matched against indicator patterns and offered with filtering, search and export. It also needs no toolchain installed, which matters on a locked-down analysis workstation.

What minimum length should I use?+

Four to start — the conventional default. Increase it to reduce noise on large binaries; decrease it only when you are looking for something specific and short.

Why does it find Unicode strings the strings command misses?+

Because Windows stores most text as UTF-16LE, where every ASCII character is followed by a zero byte. A scanner looking for consecutive printable bytes sees each character as an isolated run and discards it. This tool runs a second pass on even offsets specifically to catch those.

Can I use it on files other than executables?+

Yes. Documents, firmware images, memory dumps, packet captures, disk images, unknown attachments — anything with bytes. The tool never inspects the extension.

Does finding a suspicious string mean the file is malicious?+

No. Legitimate software contains URLs, registry keys and file paths constantly. The flags tell you where to look; establishing intent requires context.

Can I export the results?+

Yes, as CSV or JSON, both including the offset, encoding, length, string value and any patterns matched.

What if the strings look like garbage?+

That is usually packing or encryption. Check the ratio of file size to string count; if it is far off what a normal binary produces, the payload is compressed. An entropy analyzer will confirm it — high, flat entropy across the file is the signature.

What is string extraction and why is it useful?+

String extraction is the process of finding human-readable text sequences within binary files such as executables, firmware, or memory dumps. It is commonly used in malware analysis to find embedded URLs, file paths, error messages, and other indicators. Security researchers and forensic analysts use it to understand what a program does.

What types of strings does the tool detect?+

The tool extracts both ASCII and Unicode (UTF-16LE) strings from binary files. ASCII strings are single-byte character sequences, while Unicode strings use two bytes per character and are common in Windows executables. Both types are analyzed separately and can be filtered in the results.

Related tools

This tool is provided for informational and educational purposes only. While we strive for accuracy, we make no warranties about the completeness or reliability of results. Results are based on the information you enter and do not constitute a security audit, a formal compliance assessment, or legal advice, and they do not establish that any system or organisation meets a given standard. Coverage of a framework may be partial — check what the tool states it assesses. For anything you intend to rely on, consult a qualified assessor.