# brotli > Compress/uncompress files with Brotli compression. > More information: . - Compress a file, creating a compressed version next to the file: `brotli {{path/to/file}}` - Decompress a file, creating an uncompressed version next to the file: `brotli {{[-d|--decompress]}} {{path/to/file.br}}` - Compress a file specifying the output filename: `brotli {{path/to/file}} {{[-o|--output]}} {{path/to/compressed_output_file.br}}` - Decompress a Brotli file specifying the output filename: `brotli {{[-d|--decompress]}} {{path/to/compressed_file.br}} {{[-o|--output]}} {{path/to/output_file}}` - Specify the compression quality (1=fastest (worst), 11=slowest (best)): `brotli {{[-q|--quality]}} {{11}} {{path/to/file}} {{[-o|--output]}} {{path/to/compressed_output_file.br}}`