Skip to content

Code

23 operations. Call any of them with cyberchef_bake, or pre-load them with CYBERCHEF_TOOL_SURFACE=all.

Indents and prettifies Cascading Style Sheets (CSS) code.

  • Tool name: cyberchef_css_beautify
  • Input / output: stringstring
Argument Type Default
indent_string binaryShortString \t

Compresses Cascading Style Sheets (CSS) code.

  • Tool name: cyberchef_css_minify
  • Input / output: stringstring
Argument Type Default
preserve_comments boolean false

Extract information from an HTML document with a CSS selector

  • Tool name: cyberchef_css_selector
  • Input / output: stringstring
Argument Type Default
css_selector string
delimiter binaryShortString \n

Converts MessagePack encoded data to JSON. MessagePack is a computer data interchange format. It is a binary form for representing simple data structures like arrays and associative arrays.

  • Tool name: cyberchef_from_messagepack
  • Input / output: ArrayBufferJSON
  • Arguments: none

Attempts to pretty print C-style languages such as C, C++, C#, Java, PHP, JavaScript etc.This will not do a perfect job, and the resulting code may not work any more. This operation is designed purely to make obfuscated or minified code more easy to read and understand.Things which will not work properly:For loop formattingDo-While loop formattingSwitch/Case indentationCertain bit shift operators

  • Tool name: cyberchef_generic_code_beautify
  • Input / output: stringstring
  • Arguments: none

Parses and pretty prints valid JavaScript code. Also works with JavaScript Object Notation (JSON).

  • Tool name: cyberchef_javascript_beautify
  • Input / output: stringstring
Argument Type Default
indent_string binaryShortString \t
quotes option Auto
semicolons_before_closing_braces boolean true
include_comments boolean true

Compresses JavaScript code.

  • Tool name: cyberchef_javascript_minify
  • Input / output: stringstring
  • Arguments: none

Returns an Abstract Syntax Tree for valid JavaScript code.

  • Tool name: cyberchef_javascript_parser
  • Input / output: stringstring
Argument Type Default
location_info boolean false
range_info boolean false
include_tokens_array boolean false
include_comments_array boolean false
report_errors_and_try_to_continue boolean false

Extract information from a JSON object with a JPath query.

  • Tool name: cyberchef_jpath_expression
  • Input / output: stringstring
Argument Type Default
query string
result_delimiter binaryShortString \n

Indents and pretty prints JavaScript Object Notation (JSON) code.Tags: json viewer, prettify, syntax highlighting

  • Tool name: cyberchef_json_beautify
  • Input / output: stringhtml
Argument Type Default
indent_string binaryShortString ``
sort_object_keys boolean false
formatted boolean true

Compresses JavaScript Object Notation (JSON) code.

  • Tool name: cyberchef_json_minify
  • Input / output: stringstring
  • Arguments: none

Query and transform JSON data with a jsonata query.

  • Tool name: cyberchef_jsonata_query
  • Input / output: stringstring
Argument Type Default
query text string

Renders input Markdown as HTML. HTML rendering is disabled to avoid XSS.

  • Tool name: cyberchef_render_markdown
  • Input / output: stringhtml
Argument Type Default
autoconvert_urls_to_links boolean false
enable_syntax_highlighting boolean true
open_links_in_new_tab boolean false

Indents and prettifies Structured Query Language (SQL) code.

  • Tool name: cyberchef_sql_beautify
  • Input / output: stringstring
Argument Type Default
indent_string binaryShortString \t

Compresses Structured Query Language (SQL) code.

  • Tool name: cyberchef_sql_minify
  • Input / output: stringstring
  • Arguments: none

Adds syntax highlighting to a range of source code languages. Note that this will not indent the code. Use one of the ‘Beautify’ operations for that.

  • Tool name: cyberchef_syntax_highlighter
  • Input / output: stringhtml
Argument Type Default
language option auto detect

Converts the input string to camel case. Camel case is all lower case except letters after word boundaries which are uppercase. e.g. thisIsCamelCase ‘Attempt to be context aware’ will make the operation attempt to nicely transform variable and function names.

  • Tool name: cyberchef_to_camel_case
  • Input / output: stringstring
Argument Type Default
attempt_to_be_context_aware boolean false

Converts the input string to kebab case. Kebab case is all lower case with dashes as word boundaries. e.g. this-is-kebab-case ‘Attempt to be context aware’ will make the operation attempt to nicely transform variable and function names.

  • Tool name: cyberchef_to_kebab_case
  • Input / output: stringstring
Argument Type Default
attempt_to_be_context_aware boolean false

Converts JSON to MessagePack encoded byte buffer. MessagePack is a computer data interchange format. It is a binary form for representing simple data structures like arrays and associative arrays.

  • Tool name: cyberchef_to_messagepack
  • Input / output: JSONArrayBuffer
  • Arguments: none

Converts the input string to snake case. Snake case is all lower case with underscores as word boundaries. e.g. this_is_snake_case ‘Attempt to be context aware’ will make the operation attempt to nicely transform variable and function names.

  • Tool name: cyberchef_to_snake_case
  • Input / output: stringstring
Argument Type Default
attempt_to_be_context_aware boolean false

Indents and prettifies eXtensible Markup Language (XML) code.

  • Tool name: cyberchef_xml_beautify
  • Input / output: stringstring
Argument Type Default
indent_string binaryShortString \t

Compresses eXtensible Markup Language (XML) code.

  • Tool name: cyberchef_xml_minify
  • Input / output: stringstring
Argument Type Default
preserve_comments boolean false

Extract information from an XML document with an XPath query

  • Tool name: cyberchef_xpath_expression
  • Input / output: stringstring
Argument Type Default
xpath string
result_delimiter binaryShortString \n