[[analysis-charfilters]] == Character filters reference _Character filters_ are used to preprocess the stream of characters before it is passed to the <>. A character filter receives the original text as a stream of characters and can transform the stream by adding, removing, or changing characters. For instance, a character filter could be used to convert Hindu-Arabic numerals (٠‎١٢٣٤٥٦٧٨‎٩‎) into their Arabic-Latin equivalents (0123456789), or to strip HTML elements like `` from the stream. Elasticsearch has a number of built in character filters which can be used to build <>. <>:: The `html_strip` character filter strips out HTML elements like `` and decodes HTML entities like `&`. <>:: The `mapping` character filter replaces any occurrences of the specified strings with the specified replacements. <>:: The `pattern_replace` character filter replaces any characters matching a regular expression with the specified replacement. include::charfilters/htmlstrip-charfilter.asciidoc[] include::charfilters/mapping-charfilter.asciidoc[] include::charfilters/pattern-replace-charfilter.asciidoc[]