Image
28 operations. Call any of them with cyberchef_bake, or pre-load them
with CYBERCHEF_TOOL_SURFACE=all.
Add Text To Image
Section titled “Add Text To Image”Adds text onto an image.Text can be horizontally or vertically aligned, or the position can be manually specified.Variants of the Roboto font face are available in any size or colour.
- Tool name:
cyberchef_add_text_to_image - Input / output:
ArrayBuffer→html
| Argument | Type | Default |
|---|---|---|
text |
string | — |
horizontal_align |
option | None |
vertical_align |
option | None |
x_position |
number | 0 |
y_position |
number | 0 |
size |
number | 32 |
font_face |
option | Roboto |
red |
number | 255 |
green |
number | 255 |
blue |
number | 255 |
alpha |
number | 255 |
Blur Image
Section titled “Blur Image”Applies a blur effect to the image.Gaussian blur is much slower than fast blur, but produces better results.
- Tool name:
cyberchef_blur_image - Input / output:
ArrayBuffer→html
| Argument | Type | Default |
|---|---|---|
amount |
number | 5 |
type |
option | Fast |
Contain Image
Section titled “Contain Image”Scales an image to the specified width and height, maintaining the aspect ratio. The image may be letterboxed.
- Tool name:
cyberchef_contain_image - Input / output:
ArrayBuffer→html
| Argument | Type | Default |
|---|---|---|
width |
number | 100 |
height |
number | 100 |
horizontal_align |
option | Center |
vertical_align |
option | Middle |
resizing_algorithm |
option | Bilinear |
opaque_background |
boolean | true |
Convert Image Format
Section titled “Convert Image Format”Converts an image between different formats. Supported formats:Joint Photographic Experts Group (JPEG)Portable Network Graphics (PNG)Bitmap (BMP)Tagged Image File Format (TIFF)Note: GIF files are supported for input, but cannot be outputted.
- Tool name:
cyberchef_convert_image_format - Input / output:
ArrayBuffer→html
| Argument | Type | Default |
|---|---|---|
output_format |
option | JPEG |
jpeg_quality |
number | 80 |
png_filter_type |
option | Auto |
png_deflate_level |
number | 9 |
Cover Image
Section titled “Cover Image”Scales the image to the given width and height, keeping the aspect ratio. The image may be clipped.
- Tool name:
cyberchef_cover_image - Input / output:
ArrayBuffer→html
| Argument | Type | Default |
|---|---|---|
width |
number | 100 |
height |
number | 100 |
horizontal_align |
option | Center |
vertical_align |
option | Middle |
resizing_algorithm |
option | Bilinear |
Crop Image
Section titled “Crop Image”Crops an image to the specified region, or automatically crops edges.AutocropAutomatically crops same-colour borders from the image.Autocrop toleranceA percentage value for the tolerance of colour difference between pixels.Only autocrop framesOnly crop real frames (all sides must have the same border)Symmetric autocropForce autocrop to be symmetric (top/bottom and left/right are cropped by the same amount)Autocrop keep borderThe number of pixels of border to leave around the image.
- Tool name:
cyberchef_crop_image - Input / output:
ArrayBuffer→html
| Argument | Type | Default |
|---|---|---|
x_position |
number | 0 |
y_position |
number | 0 |
width |
number | 10 |
height |
number | 10 |
autocrop |
boolean | false |
autocrop_tolerance |
number | 0.02 |
only_autocrop_frames |
boolean | true |
symmetric_autocrop |
boolean | false |
autocrop_keep_border_px |
number | 0 |
Dither Image
Section titled “Dither Image”Apply a dither effect to an image.
- Tool name:
cyberchef_dither_image - Input / output:
ArrayBuffer→html - Arguments: none
Extract EXIF
Section titled “Extract EXIF”Extracts EXIF data from an image. EXIF data is metadata embedded in images (JPEG, JPG, TIFF) and audio files. EXIF data from photos usually contains information about the image file itself as well as the device used to create it.
- Tool name:
cyberchef_extract_exif - Input / output:
ArrayBuffer→string - Arguments: none
Extract LSB
Section titled “Extract LSB”Extracts the Least Significant Bit data from each pixel in an image. This is a common way to hide data in Steganography.
- Tool name:
cyberchef_extract_lsb - Input / output:
ArrayBuffer→byteArray
| Argument | Type | Default |
|---|---|---|
colour_pattern_1 |
option | R |
colour_pattern_2 |
option | — |
colour_pattern_3 |
option | — |
colour_pattern_4 |
option | — |
pixel_order |
option | Row |
bit |
number | 0 |
Extract RGBA
Section titled “Extract RGBA”Extracts each pixel’s RGBA value in an image. These are sometimes used in Steganography to hide text or data.
- Tool name:
cyberchef_extract_rgba - Input / output:
ArrayBuffer→string
| Argument | Type | Default |
|---|---|---|
delimiter |
editableOption | , |
include_alpha |
boolean | true |
Flip Image
Section titled “Flip Image”Flips an image along its X or Y axis.
- Tool name:
cyberchef_flip_image - Input / output:
ArrayBuffer→html
| Argument | Type | Default |
|---|---|---|
axis |
option | Horizontal |
Generate Image
Section titled “Generate Image”Generates an image using the input as pixel values.
- Tool name:
cyberchef_generate_image - Input / output:
ArrayBuffer→html
| Argument | Type | Default |
|---|---|---|
mode |
option | Greyscale |
pixel_scale_factor |
number | 8 |
pixels_per_row |
number | 64 |
Generate QR Code
Section titled “Generate QR Code”Generates a Quick Response (QR) code from the input text.A QR code is a type of matrix barcode (or two-dimensional barcode) first designed in 1994 for the automotive industry in Japan. A barcode is a machine-readable optical label that contains information about the item to which it is attached.
- Tool name:
cyberchef_generate_qr_code - Input / output:
string→html
| Argument | Type | Default |
|---|---|---|
image_format |
option | PNG |
module_size_px |
number | 5 |
margin_num_modules |
number | 4 |
error_correction |
option | Medium |
Image Brightness / Contrast
Section titled “Image Brightness / Contrast”Adjust the brightness or contrast of an image.
- Tool name:
cyberchef_image_brightness_contrast - Input / output:
ArrayBuffer→html
| Argument | Type | Default |
|---|---|---|
brightness |
number | 0 |
contrast |
number | 0 |
Image Filter
Section titled “Image Filter”Applies a greyscale or sepia filter to an image.
- Tool name:
cyberchef_image_filter - Input / output:
ArrayBuffer→html
| Argument | Type | Default |
|---|---|---|
filter_type |
option | Greyscale |
Image Hue/Saturation/Lightness
Section titled “Image Hue/Saturation/Lightness”Adjusts the hue / saturation / lightness (HSL) values of an image.
- Tool name:
cyberchef_image_hue_saturation_lightness - Input / output:
ArrayBuffer→html
| Argument | Type | Default |
|---|---|---|
hue |
number | 0 |
saturation |
number | 0 |
lightness |
number | 0 |
Image Opacity
Section titled “Image Opacity”Adjust the opacity of an image.
- Tool name:
cyberchef_image_opacity - Input / output:
ArrayBuffer→html
| Argument | Type | Default |
|---|---|---|
opacity |
number | 100 |
Invert Image
Section titled “Invert Image”Invert the colours of an image.
- Tool name:
cyberchef_invert_image - Input / output:
ArrayBuffer→html - Arguments: none
Normalise Image
Section titled “Normalise Image”Normalise the image colours.
- Tool name:
cyberchef_normalise_image - Input / output:
ArrayBuffer→html - Arguments: none
Parse QR Code
Section titled “Parse QR Code”Reads an image file and attempts to detect and read a Quick Response (QR) code from the image.Normalise ImageAttempts to normalise the image before parsing it to improve detection of a QR code.
- Tool name:
cyberchef_parse_qr_code - Input / output:
ArrayBuffer→string
| Argument | Type | Default |
|---|---|---|
normalise_image |
boolean | false |
Randomize Colour Palette
Section titled “Randomize Colour Palette”Randomizes each colour in an image’s colour palette. This can often reveal text or symbols that were previously a very similar colour to their surroundings, a technique sometimes used in Steganography.
- Tool name:
cyberchef_randomize_colour_palette - Input / output:
ArrayBuffer→html
| Argument | Type | Default |
|---|---|---|
seed |
string | — |
Remove EXIF
Section titled “Remove EXIF”Removes EXIF data from a JPEG image. EXIF data embedded in photos usually contains information about the image file itself as well as the device used to create it.
- Tool name:
cyberchef_remove_exif - Input / output:
ArrayBuffer→byteArray - Arguments: none
Render Image
Section titled “Render Image”Displays the input as an image. Supports the following formats:jpg/jpegpnggifwebpbmpico
- Tool name:
cyberchef_render_image - Input / output:
string→html
| Argument | Type | Default |
|---|---|---|
input_format |
option | Raw |
Resize Image
Section titled “Resize Image”Resizes an image to the specified width and height values.
- Tool name:
cyberchef_resize_image - Input / output:
ArrayBuffer→html
| Argument | Type | Default |
|---|---|---|
width |
number | 100 |
height |
number | 100 |
unit_type |
option | Pixels |
maintain_aspect_ratio |
boolean | false |
resizing_algorithm |
option | Bilinear |
Rotate Image
Section titled “Rotate Image”Rotates an image by the specified number of degrees.
- Tool name:
cyberchef_rotate_image - Input / output:
ArrayBuffer→html
| Argument | Type | Default |
|---|---|---|
rotation_amount_degrees |
number | 90 |
Sharpen Image
Section titled “Sharpen Image”Sharpens an image (Unsharp mask)
- Tool name:
cyberchef_sharpen_image - Input / output:
ArrayBuffer→html
| Argument | Type | Default |
|---|---|---|
radius |
number | 2 |
amount |
number | 1 |
threshold |
number | 10 |
Split Colour Channels
Section titled “Split Colour Channels”Splits the given image into its red, green and blue colour channels.
- Tool name:
cyberchef_split_colour_channels - Input / output:
ArrayBuffer→html - Arguments: none
View Bit Plane
Section titled “View Bit Plane”Extracts and displays a bit plane of any given image. These show only a single bit from each pixel, and can be used to hide messages in Steganography.
- Tool name:
cyberchef_view_bit_plane - Input / output:
ArrayBuffer→html
| Argument | Type | Default |
|---|---|---|
colour |
option | Red |
bit |
number | 0 |