Search for a tool
RLE (Run-Length Encoding)

Tool for encoding / decoding with Run-Length Encoding. RLE is a very simple data compression algorithm that consists in describing a string according to its repetitions.

Results

RLE (Run-Length Encoding) -

Tag(s) : Compression

dCode and you

dCode is free and its tools are a valuable help in games, puzzles and problems to solve every day!
You have a problem, an idea for a project, a specific need and dCode can not (yet) help you? You need custom development? Contact-me!


Team dCode read all messages and answer them if you leave an email (not published). It is thanks to you that dCode has the best RLE (Run-Length Encoding) tool. Thank you.

RLE (Run-Length Encoding)

Sponsored ads

RLE Decoding



Parameters





RLE Encoding



Parameters





Tool for encoding / decoding with Run-Length Encoding. RLE is a very simple data compression algorithm that consists in describing a string according to its repetitions.

Answers to Questions

How to encrypt using RLE compression ?

The text is scanned to find sequences of identical characters, then the character and the number of repetition are noted in the sequence. Most of the time, the compressed message will have less character than the original message, hence the compression.

Example: DDDDDCCCCOOODDE can be described by 5 times the character D followed by 4 times the character C, etc. The message can therefore be compressed as D5C4C3D2E1 (10 characters instead of 15).

It is possible to encode by inverting the numbers and the headers.

Example: 5D4C3C2D1E is then equivalent to D5C4C3D2E1

How to decrypt using RLE decompression?

The RLE decompression consists in browsing the message formed of pairs (character, number of repetition) and writing the equivalent text by writing the character the corresponding number of times.

Example: D5C4C3D2E1 decomposes into D5, C4, O3, D2, C1 and repeats the characters the correct number of times: D5 => DDDDD > CCCC, etc. To get DDDDDCCCCOOODDE

To apply the method with numbers, use a separatorhref, else 11111111111122 would become 11222. Which may be repeated 1222 times, or 22 times the number 2, etc.

How to recognize a RLE ciphertext?

A message compressed with RLE is composed of pairs (Character-Number) or triples (Character-Separatorhref-Number).

Ask a new question

Source code

dCode retains ownership of the source code of the script RLE (Run-Length Encoding). Except explicit open source licence (indicated Creative Commons / free), any algorithm, applet, snippet, software (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt, encrypt, decipher, cipher, decode, code, translate) written in any informatic langauge (PHP, Java, C#, Python, Javascript, etc.) which dCode owns rights can be transferred after sales quote. So if you need to download the RLE (Run-Length Encoding) script for offline use, for you, your company or association, see you on contact page !

Questions / Comments


Team dCode read all messages and answer them if you leave an email (not published). It is thanks to you that dCode has the best RLE (Run-Length Encoding) tool. Thank you.


Source : http://www.dcode.fr/rle-compression
© 2017 dCode — The ultimate 'toolkit' to solve every games / riddles / geocaches. dCode